From a8de2479b96997db8092bc6a0c5c83e0d8f1cb1f Mon Sep 17 00:00:00 2001 From: Imre Horvath Date: Sun, 14 Aug 2022 10:00:29 +0200 Subject: [PATCH] Update PostJSON.ino --- examples/PostJSON/PostJSON.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"); }