Hi, Devs,

 

I met a problem with finding resources created by server, details as below.

 

Using file  resource/csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp 
as reference, I made a server and changing the function of createresouce as 
below:

OCStackResult result;

         result = OCCreateResource(&AC.handle, 

                                               "oic.wk.res",

                                               "oic.if.ll",

                                               “/ac”, 

                                               OCEntityHandlerCb,

                                               NULL,

                                               OC_DISCOVERABLE | OC_OBSERVABLE 
);

Also, using file resource/examples/simpleclient.cpp as reference, I made a 
client.

 

When running the server and the client, for the log of server, the resource is 
created. But for the client, it can’t find the resource.

 

Could somebody help me?

 

Thanks in advance

 

Jason Sun

_______________________________________________
iotivity-dev mailing list
[email protected]
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to