Hi Gregg, In my understanding, usually, OCF app (== a process) is a "logical device" which has its own /oic/p and /oic/d. An OCF platform is a physical device, and it may host more than one "logical device" in it, and they share same "physical ID" among them.
Thanks & BR - Kevin On Wed, Sep 5, 2018 at 5:13 AM Gregg Reynolds <[email protected]> wrote: > > > On Tue, Sep 4, 2018, 12:51 PM Nathan Heldt-Sheller < > [email protected]> wrote: > >> Hi Kevin, >> >> >> >> If I’ve understood your question correctly, the answer is that the >> manufacturer would set the platform ID to the same value for all the >> Devices on the platform prior to shipping the product. In IoTivity, this >> is done via the .dat file that IoTivity loads many default Resource values >> from. >> >> >> >> There’s no API in the stack to somehow determine that two Devices are on >> the same physical platform. >> > IOW, one OCF app = one platform plus one or more devices? Not really > clear from the spec. > > But one physical device can host more than one OCF app? I.e. platform != > physical device? > > Gregg > >> Thanks, >> Nathan >> >> >> >> >> >> *From:* [email protected] [mailto: >> [email protected]] *On Behalf Of *Joo-Chul Lee >> *Sent:* Monday, September 3, 2018 6:21 PM >> *To:* iotivity-dev <[email protected]> >> *Subject:* [dev] how to share "same platform ID" among iotivity stack >> instances? >> >> >> >> >> >> Hi all, >> >> >> >> I have had one question since I began to study OCF (OIC?) spec… >> >> That is how to share “same platform ID” among logical OCF devices in >> IoTivity codes. >> >> >> >> Is this just an implementation skill (dependent on programmer) ? or is >> there any typical way used in codes ? >> >> At least I have not found any sample codes in IoTivity stack… >> >> >> >> Thanks & BR, >> >> >> >> - Kevin >> >> >> -- >> >> -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ >> Joo-Chul Kevin Lee, ETRI >> 161 Gajeong-dong, Yuseong-gu, daejon, 305-700, KOREA >> E-mail: [email protected]/[email protected] Tel: +82-42-860-1021 >> -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ >> >> >> >> -- -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Joo-Chul Kevin Lee, ETRI 161 Gajeong-dong, Yuseong-gu, daejon, 305-700, KOREA E-mail: [email protected]/[email protected] Tel: +82-42-860-1021 -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9915): https://lists.iotivity.org/g/iotivity-dev/message/9915 Mute This Topic: https://lists.iotivity.org/mt/25172934/21656 Group Owner: [email protected] Unsubscribe: https://lists.iotivity.org/g/iotivity-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
