-
Notifications
You must be signed in to change notification settings - Fork 6
Description
am trying to do a get resquest on this resource: /example/BrightnessResURI
from the ./src/brightness example.
system: Ubuntu 16.04 64 bits
running iotivity 1.3.1 build with SECURED = 1 ( this seems to be a requirement to deal with this example)
cd /src/brightness example.
i commented out OC_SECURED under common.h. and increase the /example/BrightnessResURI resource
permission to (31) which should allow all operation if my understanding is correct.
make(build scorrectly)
./bin/server -v
from logs: runs and update the brightness value
./bin/observer
resourceUri=/example/BrightnessResURI
and hangs there.
is this a permissions or security problem. trying to increase permission on the resource still
leave the observer hanging.
**** REST API SERVER TEST: https://github.com/intel/iot-rest-api-server
http://localhost:8000/api/oic/res
{"di":"31313131-3131-3131-3131-313131313131","links":[{"href":"/example/BrightnessResURI","rt":["oic.r.light.brightness"],"if":["oic.if.baseline"],"p":{"bm":3,"secure":false}}]}
Trying to get the ressource via the IOT API REST SERVER return:
http://localhost:8000/api/oic/example/BrightnessResURI?di=31313131-3131-3131-3131-313131313131 Resource retrieve failed: Access denied
This to me has more to do with security more than permissions,.
can you shed some light on how i can disable this security restrictions. i would like to use this example as base for some of my own development.