Hi Gregg,
It is mentioned in both Resource Type Specification and Core Spec since OIC 1.1. Resource Type Specification is agnostic to any vertical. Regards Dwarka ---------------------------------------------------------------------------------- Software R&D Center | Convergence Team | IoT Lab Open Connectivity Foundation ? OSWG ? Spec Coordination TG Chair Iotivity Steering Group ? Advisory Committee From: Gregg Reynolds [mailto:[email protected]] Sent: Saturday, November 19, 2016 1:24 PM To: Dwarkaprasad Dayama Cc: ??? (Uze Choi); iotivity-dev at lists.iotivity.org; Tonny Tzeng Subject: Re: [dev] OCF data model question On Nov 16, 2016 4:47 AM, "Dwarkaprasad Dayama" <dwarka.dayama at samsung.com <mailto:dwarka.dayama at samsung.com> > wrote: > > OCF enforce data type for each resource / property very specifically. > are you sure this is accurate? An OCF profile like smart home may specify this, but I am not aware of anything like this in the core spec. > For luminance sensor it is supposed to be floating point value and not the > integer. > > > > Regards > > Dwarka > > ---------------------------------------------------------------------------------- > > Software R&D Center | Convergence Team | IoT Lab > > Open Connectivity Foundation ? OSWG ? Spec Coordination TG Chair > > Iotivity Steering Group ? Advisory Committee > > > > From: iotivity-dev-bounces at lists.iotivity.org <mailto:iotivity-dev-bounces > at lists.iotivity.org> [mailto:iotivity-dev-bounces at lists.iotivity.org > <mailto:iotivity-dev-bounces at lists.iotivity.org> ] On Behalf Of ??? (Uze > Choi) > Sent: Wednesday, November 16, 2016 7:22 PM > To: 'Tonny Tzeng'; iotivity-dev at lists.iotivity.org <mailto:iotivity-dev at > lists.iotivity.org> > Subject: Re: [dev] OCF data model question > > > > Hi Tony, > > > > Type checking capability in advance is the one of the missing part which > IoTivity does not have. > > Could you provide more detail happening. > > If possible, it will be best to put it into jira.iotivity.org > <http://jira.iotivity.org> to assign the appropriate person. > > > > BR, UZe Choi > > From: iotivity-dev-bounces at lists.iotivity.org <mailto:iotivity-dev-bounces > at lists.iotivity.org> [mailto:iotivity-dev-bounces at lists.iotivity.org > <mailto:iotivity-dev-bounces at lists.iotivity.org> ] On Behalf Of Tonny Tzeng > Sent: Wednesday, November 16, 2016 6:52 PM > To: iotivity-dev at lists.iotivity.org <mailto:iotivity-dev at > lists.iotivity.org> > Subject: [dev] OCF data model question > > > > Hi, > > My Iotivity Android client observes updates from a illuminance resource, but > it crashes sometimes when the received illuminance value is a > java.lang.Integer. Is it the wrong implementation in the server or should I > examine the type attribute (java.lang.Interger or Double) before casting the > property to the desired value? Does OCF spec enforce strict data type during > transmitting CBOR binaries? Thanks. > > Best Regards, > > Tonny > > > _______________________________________________ > iotivity-dev mailing list > iotivity-dev at lists.iotivity.org <mailto:iotivity-dev at > lists.iotivity.org> > https://lists.iotivity.org/mailman/listinfo/iotivity-dev > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20161121/e29d78e0/attachment.html>
