Hello,
I have set up Iotivity Cloud on a Ubuntu VM (with bridged IP address). I
tested examples aircon_contolee and aircon_controller by connecting to
the same Cloud Interface and they work fine.
Now I tried to run aircon_controlee in this VM and aircon_controller in
a second VM (in another PC inside my network). In the code of CI I have
replaced 127.0.0.1 with the IP of the VM where the RD, Account Manager
and MessageQueue are running and built it for the second VM. Then I ran
CI jar and connected with no errors (to the RD, Account Manager and
MessageQueue of the first VM). When I tried to run aircon_controller it
was able to find the aircon_controlee device and resource and read its
status in the RD (on/off) but could not GET the resource. This is what I
got in the console concerning observe/get:
Observe registration action is successful
OBSERVE RESULT:
prslist: [OC::OCRepresentation ]
di: 61646d69-6e44-6576-6963-234231423444
state: on
Resource get: 134
The logs on the CI on the same VM are:
2017-10-31 03:36:41:655 [V] 00000000-6443368302082a91-26dcd084
000000000000000d GET OBSERVE
/oic/prs/?di=61646d69-6e44-6576-6963-234231423444
2017-10-31 03:36:41:663 [V] 00000000-6443368302082a91-26dcd084
000000000000000d 2.05 Content OBSERVE CT:APPLICATION_CBOR SZ:64
P:{"prslist":[{"di":"61646d69-6e44-6576-6963-234231423444","state":"on"}]}
2017-10-31 03:36:41:666 [V] 00000008-32371e0ca0912c10-76365557
9b5a751f00288d26 2.05 Content OBSERVE CT:APPLICATION_CBOR SZ:64
P:{"prslist":[{"di":"61646d69-6e44-6576-6963-234231423444","state":"on"}]}
2017-10-31 03:36:41:670 [V] 00000008-32371e0ca0912c10-76365557
49a9513a2b8b299c GET
/oic/route/61646d69-6e44-6576-6963-234231423444/aircon/0/?if=oic.if.ll
2017-10-31 03:36:41:672 [V] 00000008-32371e0ca0912c10-76365557 null
2017-10-31 03:36:41:672 [V] 00000008-32371e0ca0912c10-76365557
49a9513a2b8b299c 5.00 Internal Server Error
2017-10-31 03:36:41:672 [V] 00000001-846ca17d02082b19-2d990e34
000000000000000e GET
/oic/acl/verify/?sid=7d907f23-28de-452b-aec6-43293d27267c;di=61646d69-6e44-6576-6963-234231423444;rm=GET;uri=/aircon/0
2017-10-31 03:36:41:674 [V] 00000008-32371e0ca0912c10-76365557
Disconnected, Address: /127.0.0.1:44630
2017-10-31 03:36:41:678 [V] 00000001-846ca17d02082b19-2d990e34
000000000000000e 2.05 Content CT:APPLICATION_CBOR SZ:13 P:{"gp":"Allowed"}
2017-10-31 03:36:41:681 [V] 00000000-6443368302082a91-26dcd084
000000000000000e POST /oic/prs CT:APPLICATION_CBOR SZ:53
P:{"di":"61646d69-6e44-6576-6963-655575696430","state":"off"}
2017-10-31 03:36:41:704 [V] 00000000-6443368302082a91-26dcd084
000000000000000e 2.04 Changed
In order to run both aircon files I used the same github credentials to
get the code. Has anyone else tried to run those examples in different
PCs with two different Cloud Interfaces connected to the same Cloud? Is
this a matter of security maybe?
Thank you in advance,
Maria
_______________________________________________
iotivity-dev mailing list
iotivity-dev@lists.iotivity.org
https://lists.iotivity.org/mailman/listinfo/iotivity-dev