mathworks / thingspeak-arduino

ThingSpeak Communication Library for Arduino, ESP8266 and ESP32
https://thingspeak.com
431 stars 231 forks source link

Increase the channel location precision #86

Closed dzsoni closed 1 year ago

dzsoni commented 1 year ago

6 decimal precision at channel longitude ,latitude.

dzsoni commented 1 year ago

The default precision when converting from float to String using String(float) is 2 decimal places. Same for client.print(float). However, the server is able to provide 6 decimal precision, as probed with the ThingSpeak.readMultipleFields routine. I have modified the code to send 6 decimal values for the longitude ,latitude fields.