AnaviTechnology / anavi-thermometer-sw

Open source Arduino sketch for the smart WiFi dev board ANAVI Thermometer
GNU General Public License v3.0
27 stars 17 forks source link

Handle ArduinoJson 6.19.0 and newer; recommend 6.21.4 #58

Closed cederlys closed 10 months ago

cederlys commented 10 months ago

ArduinoJson 6.19.0 uses double instead of float by default. This causes serialized floats to sometimes contain trailing digits that are rounding errors. For instance, 21.2 might be sent as "21.20000076". Fix by defining ARDUINOJSON_USE_DOUBLE to 0, which was the default value in older versions of ArduinoJson.

Change the recommended version to the current release: 6.21.4.

leon-anavi commented 10 months ago

Thank you!

jduff001 commented 10 months ago

If order a replacement will it come withUpdate 

Sent from starlink via the outer space

On Tue, Dec 26, 2023 at 6:10 PM, Leon @.***> wrote:

Thank you!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>