Hi, dev Sorry to disturb your work.
Now I had a question about function OCPlatform::setPropertyValue(); As you know, I’m making a project in SECURED=1 mode. To set device info, I used function OCPlatform::setPropertyValue to set related values. I used below to set ID OCPlatform::setPropertyValue(PAYLOAD_TYPE_DEVICE, OC_RSRVD_PROTOCOL_INDEPENDENT_ID, protocolIndependentID); Then I met a problem. For that ID, I generated several UUIDs as below from website by using UUID online tool. They are for UUID version 1,3,4 and 5 from top to bottom. 152fb44f-2831-11e8-b43e-060400ef5315 71c52487-5075-3905-8126-f488e6305395 22e3f365-827c-46ec-ac59-4622572ef5c4 eaf8bb1f-7fa8-5b68-a807-2da714ef6906 But my project always crashed when calling that function, and it will show “Segmentation fault”. Then I changed the ID by using the one from iotivity-1.3.1/resource/examples/simpleserver.cpp, fa008167-3bbf-4c9d-8604-c9bcb96cb712, everything will be OK then. Could you help explain Why it is? Does this mean I can only use that one for all devices? Thanks Jason Sun
_______________________________________________ iotivity-dev mailing list iotivity-dev@lists.iotivity.org https://lists.iotivity.org/mailman/listinfo/iotivity-dev