Skip to content

Commit

Permalink
Update PostJSON.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
imrehorvath authored Aug 14, 2022
1 parent b9f1bfb commit a8de247
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/PostJSON/PostJSON.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit a8de247

Please sign in to comment.