We don't actually support "float" in the stack, only "double". Since these are two disparate types as far as a variant is concerned, they will come across separately. Please change it to 'double' and it should work.
-Erich On Tue, 2015-07-21 at 08:10 +0000, Ramasamy Kannan wrote: > Hi, > > In the simpleclient.cpp and simpleserver.cpp files, for the light class, I > change the datatype of m_power from 'int' to 'float' and I get this following > error during execution. > > "Exception: boost::bad_get: failed value get using boost::get in onGet" > > OIC specifications, says that float datatype is supported for resource > properties. So Is this a bug? > > Regards, > Ram > _______________________________________________ > iotivity-dev mailing list > iotivity-dev at lists.iotivity.org > https://lists.iotivity.org/mailman/listinfo/iotivity-dev
