Am experimenting with iotivity 1.2.0 for arduino Mega! i can disciver resources 
normally! but in order to do get and update i need to know the id of the device.
am using iotivity-node for interfacing with iotivity devices. below is response 
from the arduino server from a node js client

Discovered resource:
{
    "properties": {},
    "resourcePath": "/a/light",
    "deviceId": "",
    "interfaces": [
        "oic.if.baseline"
    ],
    "resourceTypes": [
        "core.light"
    ],
    "discoverable": true,
    "slow": false,
    "secure": true,
    "observable": true,
    "active": false,
    "_events": {},
    "_eventsCount": 2
}

The same resource under a linux server:
 
Discovered resource:
{
    "properties": {},
    "resourcePath": "/a/light",
    "deviceId": "31313131-3131-3131-3131-313131313131",
    "interfaces": [
        "oic.if.baseline",
        "oic.if.ll"
    ],
    "resourceTypes": [
        "core.light",
        "core.brightlight"
    ],
    "discoverable": true,
    "slow": false,
    "secure": true,
    "observable": true,
    "active": false,
    "_events": {},
    "_eventsCount": 2
}
Do i need to set the device id myself or enable some flag in the source for 
that?

Any help would be welcome.

Thanks 

Yann

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10009): 
https://lists.iotivity.org/g/iotivity-dev/message/10009
Mute This Topic: https://lists.iotivity.org/mt/28121956/21656
Group Owner: [email protected]
Unsubscribe: https://lists.iotivity.org/g/iotivity-dev/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to