You should be able to observer the pstat resource from the client. Discover the oic.r.pstat resource. From the discovery callback call oc_do_observe(…) using the server information that you got from the discovery callback.
Check the permissions for the oic.r.pstat resource to see if it has notify permissions. I am not sure what the default permissions for that resource is. If it does not have the correct permissions you should be able to update the permissions using the onboarding_tool. It really should be as simple as that. George From: [email protected] <[email protected]> On Behalf Of [email protected] Sent: Thursday, February 27, 2020 9:45 AM To: [email protected] Subject: Re: [dev] Iotivity Client Hi Clarke and George, I see. Thank you! I've tried the onboarding_tool from iotivity-lite github and follow the step in README.md. It works. The simpleserver and simpleclient can communicate. Do you have any idea if I want to observe the pstat resource from client? Do I need to change the endpoint at discovery function, I mean the rt, to oic.r.pstat? -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#10360): https://iotivity.groups.io/g/iotivity-dev/message/10360 Mute This Topic: https://groups.io/mt/69378274/21656 Group Owner: [email protected] Unsubscribe: https://iotivity.groups.io/g/iotivity-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
