Hi! I'm trying to run the provisioning samples.
Having compiled with scons SECURED=1 samples I run out/linux/x86_64/release/resource/csdk/security/provisioning/sample/sampleserver_justworks in one terminal, and out/linux/x86_64/release/resource/csdk/security/provisioning/sample/provisioningclient in another terminal. I request that it discover all unowned devices, but it lists none. Discovery works OK otherwise. So, how do I start a server that is unowned, so that it may be listed as a result of a call to OCDiscoverUnownedDevices(), and so I may subsequently transfer ownership of it to the client which calls OCDiscoverUnownedDevices()? My ultimate goal is to run the iotivity-node test suite in secure mode. The test suite consists of client/server pairs, each performing a basic operation like discovery, CRUD request, presence, and observation. In secured mode, I would like to add a preamble where the client assumes ownership of the server, thereby gaining (I assume) full access to the server's resources, so that it may perform the requests it is testing without receiving any OC_STACK_UNAUTHORIZED_REQ responses. Please let me know if this is a sensible approach, if I'm making any mistaken assumptions about the provisioning, or if there are any details regarding this assumption of ownership of the server by the client that I'm missing! TIA for your help and advice, Gabriel
