Test casting a JsonValue to an int

This commit is contained in:
Benoit Blanchon
2014-08-01 14:52:15 +02:00
parent 15d3068d78
commit 88510705be
2 changed files with 16 additions and 4 deletions

View File

@ -64,6 +64,11 @@ namespace ArduinoJson
return "";
}
operator int()
{
return content.asLong;
}
size_t printTo(Print& p) const
{
// handmade polymorphism