mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-18 13:02:25 +02:00
Added overload to add() to specify the double precision
This commit is contained in:
@ -23,6 +23,11 @@ public:
|
||||
add(key, JsonValue(value));
|
||||
}
|
||||
|
||||
void add(const char* key, double value, int digits=2)
|
||||
{
|
||||
add(key, JsonValue(value, digits));
|
||||
}
|
||||
|
||||
void add(const char* key, JsonValue value)
|
||||
{
|
||||
if (itemCount >= N) return;
|
||||
|
Reference in New Issue
Block a user