Hi,

> On 09 Feb 2016, at 17:30, Thiago Macieira <thiago.macieira at intel.com> 
> wrote:
> 
> On ter?a-feira, 9 de fevereiro de 2016 11:32:35 PST Salvatore Iovene wrote:
>> Hi,
>> I'm using the Java API to discover devices via the "getDeviceInfo"
>> method on OcPlatform.
>> 
>> Is there a way to get the devices URL from its OcRepresentation? I
>> read all the way down to the C stack and it looks like only the
>> following keys are set in the payload:
>> 
>> OC_RSRVD_DEVICE_ID,
>> OC_RSRVD_DEVICE_NAME,
>> OC_RSRVD_SPEC_VERSION
>> OC_RSRVD_DATA_MODEL_VERSION
>> 
>> (see here:
>> https://github.com/iotivity/iotivity/blob/1.0.1/resource/csdk/stack/src/ocp
>> ayloadconvert.c#L425 )
>> 
>> Am I missing something?
> 
> Hi Salvatore
> 
> Why do you need the URL?

I?m implementing this:
https://github.com/otcshare/iotivity-node/blob/master/spec/iot-js-spec.md 
<https://github.com/otcshare/iotivity-node/blob/master/spec/iot-js-spec.md>

And the corresponding device in this JavaScript API has a URL.

> Technically, if you have the device name, you have the URL, by composing it 
> like "oic://<device-id-with-dashes>?.

Zoltan, would it be okay to build the URL like that in OicDevice?

  Salvatore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160209/b767329b/attachment.html>

Reply via email to