forked from bblanchon/ArduinoJson
Renamed addItem() to add()
This commit is contained in:
@ -19,25 +19,25 @@ public:
|
|||||||
|
|
||||||
void add(const char* value)
|
void add(const char* value)
|
||||||
{
|
{
|
||||||
addItem(JsonValue(value));
|
add(JsonValue(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
void add(double value)
|
void add(double value)
|
||||||
{
|
{
|
||||||
addItem(JsonValue(value));
|
add(JsonValue(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
void add(bool value)
|
void add(bool value)
|
||||||
{
|
{
|
||||||
addItem(JsonValue(value));
|
add(JsonValue(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
void add(JsonObjectBase& value)
|
void add(JsonObjectBase& value)
|
||||||
{
|
{
|
||||||
addItem(JsonValue(value));
|
add(JsonValue(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
void addItem(JsonValue value)
|
void add(JsonValue value)
|
||||||
{
|
{
|
||||||
if (itemCount >= N) return;
|
if (itemCount >= N) return;
|
||||||
|
|
||||||
|
@ -19,10 +19,10 @@ public:
|
|||||||
|
|
||||||
void add(const char* key, const char* value)
|
void add(const char* key, const char* value)
|
||||||
{
|
{
|
||||||
addItem(key, JsonValue(value));
|
add(key, JsonValue(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
void addItem(const char* key, JsonValue value)
|
void add(const char* key, JsonValue value)
|
||||||
{
|
{
|
||||||
if (itemCount >= N) return;
|
if (itemCount >= N) return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user