Selaa lähdekoodia

Updated Arduino example

Benoît Blanchon 12 vuotta sitten
vanhempi
sitoutus
cb0973ab38
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      examples/JsonGeneratorExample/JsonGeneratorExample.ino

+ 4 - 4
examples/JsonGeneratorExample/JsonGeneratorExample.ino

@@ -14,12 +14,12 @@ void setup()
     h.add("pi", 3.14);
 
     JsonArray<3> a;
-    a.add(1.0);
-    a.add(2.0);
-    a.add(3.0);
+    a.add(1);
+    a.add(2);
+    a.add(3);
     h.add("list", a);
 
-    h.add("hellow", "world");
+    h.add("hello", "world");
 
     Serial.print(h);
 }