Hi all,
I?m trying to run the aircon_* examples with the iotivity cloud running
locally.
Client sign-up, sign-in, resource publishing and discovery seems to work fine,
except that the aircon_controller cannot request the collection resource of the
"x.com.samsung.da.device" resource.
Here is the log of aircon_controller:
<snip>
Login/out response received code: 4
accesstoken: e51c69778e8e7ffa47f16c474b176605666e37dd
certificate: <snip certificate data>
expiresin: -1
redirecturi: coap+tcp://127.0.0.1:5683
refreshtoken: (null)
sid: 2a6085d1-815d-4277-baba-4e4e4df91308
tokentype: bearer
uid: ebee65c5-6798-4179-af2b-534c92c9501d
Login/out response received code: 4
expiresin: -1
Finding airconditioner result: 0
Found device called!
Device found: /oic/route/ec068bcd-9cf8-e567-1c80-6913c52c69f5/oic/d
DI: ec068bcd-9cf8-e567-1c80-6913c52c69f5
RT: oic.wk.d
RT: oic.d.airconditioner
Airconditioner found
PUT 1/0 to turn on/off air conditioner, q to terminate
Aircondition resource found:
/oic/route/ec068bcd-9cf8-e567-1c80-6913c52c69f5/oic/d
RT: oic.wk.d
RT: oic.d.airconditioner
Aircondition resource found:
/oic/route/ec068bcd-9cf8-e567-1c80-6913c52c69f5/oic/p
RT: oic.wk.p
Aircondition resource found:
/oic/route/ec068bcd-9cf8-e567-1c80-6913c52c69f5/sec/aircon/0
RT: x.com.samsung.da.device
Found Samsung Airconditioner
Observe registration action is successful
OBSERVE RESULT:
prslist: [OC::OCRepresentation ]
di: ec068bcd-9cf8-e567-1c80-6913c52c69f5
state: on
Resource get: 46
URI:
Constructing binary switch
</snip>
Please note the "Resource get: 46" line, where the collection resource was
requested. I assume this correlates with an "Unauthorized" log of the cloud
interface server:
<snip>
2017-03-20 09:58:24:569 [V] 00000007-e10d6482a2b055af-341f8651 316d65c9c0467c7c
GET /oic/route/ec068bcd-9cf8-e567-1c80-6913c52c69f5/sec/aircon/0/?if=oic.if.ll
2017-03-20 09:58:24:570 [V] 00000001-8f766bbb0d6d8b52-8bf9e6db 0000000000000009
GET
/oic/acl/verify/?sid=ebee65c5-6798-4179-af2b-534c92c9501d;di=ec068bcd-9cf8-e567-1c80-6913c52c69f5;rm=GET;uri=/sec/aircon/0
2017-03-20 09:58:24:574 [V] 00000001-8f766bbb0d6d8b52-8bf9e6db 0000000000000009
2.05 Content SZ:13 P:?bgpgAllowed?
2017-03-20 09:58:24:577 [V] 00000007-e10d6482a2b055af-341f8651 0000000000000000
GET /sec/aircon/0/?if=oic.if.ll
2017-03-20 09:58:24:584 [V] 00000007-e10d6482a2b055af-341f8651 0000000000000000
4.01 Unauthorized
2017-03-20 09:58:24:584 [V] 00000007-e10d6482a2b055af-341f8651 316d65c9c0467c7c
4.01 Unauthorized
</snip>
Also any resource changes done by aircon_controlee (on/off switch) don't seem
to be transmitted to the cloud interface, since there is no log entry generated
by any of the servers.
Does anybody know what the problem might be?
Here are the relevant version information:
IoTivity 1.2-rel built with flags: RELEASE=yes WITH_TCP=true
TARGET_TRANSPORT=IP WITH_CLOUD=true WITH_MQ=PUB,SUB SECURED=1
Cloud servers running on Ubuntu 16.04 LTS using openjdk-8-jdk
(8u121-b13-0ubuntu1.16.04.2) from Ubuntu repositories.
Mongodb 1:2.6.10-0ubuntu1 from Ubuntu repositories.
Zookeeperd 3.4.8-1 from Ubuntu repositories.
Kafka 2.11_0.10.1.0 from kafka homepage.
Thank you for your help.
Regards,
Martin R?sch