Dear all,

I have sent double data from arduino to android.

value is 32.17

- Arduino side (ocserver.cpp)
My code is as below.
if (OC_REST_GET == entiryHandlerRequest->method)
{
    double temp = 32.17;
    OCRepPayloadSetPropDouble(payload, "temp", temp);
}
...

- Android side (SimpleClient.java)
temp: -3.47786198xxxxxxx (x is number)

As i know, arduino mega is little endian.
Android is little endian, too.
I guess, it doesn't cause of endian.

What is problem ?

Best regards,
Roy Kang.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20160109/95aba92b/attachment.html>

Reply via email to