Closed spokeydokeys closed 6 years ago
@sethgilchrist - Thanks for reporting this. It is currently tracked in our backlog but has not been a priority as of yet.
@sethgilchrist : The ESP8266 library fixed this some time ago, and our latest Arduino libraries have pulled in the fix. Please re-open this or file a new issue if you still have trouble.
I'm trying to send a float or a double to my IoT Hub, however, the generated JSON is:
{"DeviceId":"Device001", "Temperature":%.*f, "XAccel":%.*f, "YAccel":%.*f, "ZAccel":%.*f}
If I declare the values as integers in
DECLARE_MODEL
and then cast the floats toint
beforeSERIALIZE
, it works.I think this is due to the fact that Arduino does not support
printf
of floats or doubles because of the overhead.