forked from bblanchon/ArduinoJson
Simplified JsonVariant::as<T>() to always return T
This commit is contained in:
1 parent
9094179856
commit
e4ce75e20c
16 files changed
+78
-81
No files matched your search
@@ -92,7 +92,7 @@ void setup() {
|
||||
|
||||
// Extract values
|
||||
Serial.println(F("Response:"));
|
||||
Serial.println(doc["sensor"].as<char*>());
|
||||
Serial.println(doc["sensor"].as<const char*>());
|
||||
Serial.println(doc["time"].as<long>());
|
||||
Serial.println(doc["data"][0].as<float>(), 6);
|
||||
Serial.println(doc["data"][1].as<float>(), 6);
|
||||
|
||||
Reference in new issue
Block a user