diff --git a/examples/PostJSON/PostJSON.ino b/examples/PostJSON/PostJSON.ino index 9527fbc..6ee73a5 100644 --- a/examples/PostJSON/PostJSON.ino +++ b/examples/PostJSON/PostJSON.ino @@ -35,7 +35,10 @@ void setup() { client.enableInsecure(); // Using HTTPS and peer cert. will not be able to auth. - client.postAsync("https://httpbin.org/post", "{\"key\":\"value\"}"); + String data = "{\"sensorData\":\""; + data += 123; + data += "\"}"; + client.postAsync("https://httpbin.org/post", data); SerialUSB.print("Sending request"); }