forked from bblanchon/ArduinoJson
Added overload to add() to specify the double precision
This commit is contained in:
1 parent
5b1c2047a4
commit
daba65d987
4 files changed
+34
-21
No files matched your search
@@ -23,6 +23,11 @@ public:
|
||||
add(JsonValue(value));
|
||||
}
|
||||
|
||||
void add(double value, int digits=2)
|
||||
{
|
||||
add(JsonValue(value, digits));
|
||||
}
|
||||
|
||||
void add(JsonValue value)
|
||||
{
|
||||
if (itemCount >= N) return;
|
||||
|
||||
Reference in new issue
Block a user