#include <Wifi.h>
#include<ThingSpeak.h>
Wificlient client;
void setup()
{
Serial.begin(115200);
ThingSpeak.begin(client);
Wifi.disconnect();
delay(3000);
Serial.println("START");
Wifi.brgin("wokwi_GUEST"," ");
while((!(WiFi.Status()==WL_CONNECTED)))
{
delay(300);
Serial.print("..");
}
Serial.println("your IP is:");
Serial.println((Wifi.localIP().tostring()));
Serial.println("connected");
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop()
{
Serial.print("Temperature");
Serial.println((ThingSpeak.readIntField(2412202,2,"Read
key"))); // put your main code here, to run repeatedly:
delay(3000); // this speeds up the simulation
}
Loading
esp32-devkit-c-v4
esp32-devkit-c-v4