Yes, all introspection data should be cbor encoded. If there is a place where json file is returned, it is a bug.
From: iotivity-dev-boun...@lists.iotivity.org [mailto:iotivity-dev-boun...@lists.iotivity.org] On Behalf Of Nash, George Sent: Thursday, October 5, 2017 10:51 AM To: Nash, George <george.n...@intel.com>; IoTivity Developer List <iotivity-dev@lists.iotivity.org> Subject: Re: [dev] Adding introspection to samples I did not see my typo yesterday. That should be `light_introspection.json` not `light_intropection.java` sorry for confusion. One sample is using the json file the other is using the cbor file. As Mats pointed out to me in a direct email the spec apparently says. "suitable encoding as defined in OCF Core Specification" From: iotivity-dev-boun...@lists.iotivity.org<mailto:iotivity-dev-boun...@lists.iotivity.org> [mailto:iotivity-dev-boun...@lists.iotivity.org] On Behalf Of Nash, George Sent: Wednesday, October 4, 2017 4:33 PM To: IoTivity Developer List <iotivity-dev@lists.iotivity.org<mailto:iotivity-dev@lists.iotivity.org>> Subject: [dev] Adding introspection to samples I am looking at adding Introspection to Java see IOT-2773 (https://jira.iotivity.org/browse/IOT-2773<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjira.iotivity.org%2Fbrowse%2FIOT-2773&data=02%7C01%7Csrikguru%40microsoft.com%7C6c63f5a75e9149a46f1108d50c19a09f%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636428226641237401&sdata=6LqNVppx9i%2F%2B0fXrzbiuyLAPX0sUqgO0OzC6tozYk6w%3D&reserved=0>) The CPP samples that add introspection are inconsistent: In the lightserver.cpp example the 'light_introspection.dat' is returned for the introspect request In the simpleserver.cpp example the 'light_instrospection.java' is returned for the introspect request. I thought that introspect requests returned CBOR formatted files so I think the lightserver.cpp sample is the correct one. Could anyone verify this for me? Thanks, George
_______________________________________________ iotivity-dev mailing list iotivity-dev@lists.iotivity.org https://lists.iotivity.org/mailman/listinfo/iotivity-dev