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? Technically, if you have the device name, you have the URL, by composing it like "oic://<device-id-with-dashes>". -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center