There is no RUN permission so I am a little confused. The permissions are CREATE, READ, UPDATE, DELETE, NOTIFY (CRUDN)
READ will let clients read the resource properties. (e.g. oc_do_get) UPDATE will let clients update (write) the resource properties (e.g. oc_do_push) NOTIFY will let clients receive a notifications. CREATE enable a client to create a new resource on the server DELETE enable a client to delete an existing resource from the server You are unlikely to need CREATE and DELETE. Your error OC_STATUS_UNAUTHORIZED is almost always a permissions error so it seems likely that the ACE2 is not setup correctly or you may have forgotten to pair the server and client. If you use the instructions found in the top level README instead of selecting [2]: All NCRs with >=1 secured endpoint '+' Try selecting [1]: All NCRs '*' Set the READ, UPDATE, and NOTIFY permission. Using wildcard `*` with this permission opens the server up even to un-trusted clients but its unlikely to be a problem while you are just getting started. Once you have the client/server actually working mess around the ACE2 permissions to make it more secure. George From: [email protected] <[email protected]> On Behalf Of [email protected] Sent: Wednesday, March 4, 2020 8:33 AM To: [email protected] Subject: Re: [dev] Iotivity Client George, Yes, Thank you! That really helps me to have a better understanding of the code flow. So, today I tried to observe oic.r.softwareupdate resource, get the endpoint and port, then oc_do_post the first step (isac) to check it will work or not. But it didn't work. And after I print the result of the oc_status code is 6 which means OC_STATUS_UNAUTHORIZED. Is it because of the permission of softwareupdate resources? Since it is the internal iotivity-lite framework? I've tried to use onboarding tool, choose option provision ACE2, set the resource href to /sw, give RUN permission. But it didn't work, I think I've done it wrong. Maybe you can help me how to give authorization to the client to interact with pstat and softwareupdate resource or how to set the permission of the internal Iotivity-lite framework (such as pstat and softwareupdate resource)?. -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#10366): https://iotivity.groups.io/g/iotivity-dev/message/10366 Mute This Topic: https://groups.io/mt/69378274/21656 Group Owner: [email protected] Unsubscribe: https://iotivity.groups.io/g/iotivity-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
