#include <ESP8266WiFi.
h>
#include <ArduinoJson.h>
void setup() {
// put your setup code here, to run once:
[Link](9600);
}
void loop() {
// put your main code here, to run repeatedly:
if([Link]() == 'j') {
DynamicJsonBuffer jBuffer;
JsonObject& root = [Link]();
root["day"] = "Monday";
int temp = 21;
int humidity = 53;
root["temperature"] = temp;
root["humidity"] = humidity;
[Link](Serial);
[Link]();
}
delay(2000);
}#include <ESP8266WiFi.h>
#include <ArduinoJson.h>
void setup() {
// put your setup code here, to run once:
[Link](9600);
}
void loop() {
// put your main code here, to run repeatedly:
if([Link]() == 'j') {
DynamicJsonBuffer jBuffer;
JsonObject& root = [Link]();
root["day"] = "Monday";
int temp = 21;
int humidity = 53;
root["temperature"] = temp;
root["humidity"] = humidity;
[Link](Serial);
[Link]();
}
delay(2000);
}