adafruit / Adafruit_IO_Arduino

Arduino library to access Adafruit IO from WiFi, cellular, and ethernet modules.
Other
210 stars 107 forks source link

Decimal precision for sending floats from AVR/SAMD #76

Closed brentru closed 5 years ago

brentru commented 5 years ago

The setValue function is currently set up to handle decimal precision for floats and doubles, but the precision is only used on ESP8266 targets.

This functionality should also be extended to (and tested on) AVR/SAMD hardware

Float: https://github.com/adafruit/Adafruit_IO_Arduino/blob/master/src/AdafruitIO_Data.cpp#L179 Double: https://github.com/adafruit/Adafruit_IO_Arduino/blob/master/src/AdafruitIO_Data.cpp#L198

brentru commented 5 years ago

Closing, merged into master and added to release.