ArduinoJson: F.A.Q

Warning: floating constant exceeds range of 'double'

This may happen if you’re targetting a platform where doubles have only 32-bits.

Usually ArduinoJson can detect this, but when it doesn’t you may have the following errors:

warning: floating constant exceeds range of 'double' [-Woverflow]
warning: floating constant truncated to zero [-Woverflow]

or

Error[Pe030]: floating constant is out of range

The solution is to define ARDUINOJSON_DOUBLE_IS_64BITS to 0:

#define ARDUINOJSON_DOUBLE_IS_64BITS 0
#include <ArduinoJson.h>
Fork me on GitHub