/*
iot-technology-ftbs
program ini menggunakanESP32 dan terhubungan dengan aplikasi Blynk Lagacy
*/
#define BLYNK_PRINT Serial
#define BLYNK_TEMPLATE_ID "T1234567890"
#define BLYNK_TEMPLATE_NAME "poject3"
#define BLYNK_AUTH_TOKEN "__4Kq65Z5kHmruHevIQ4YGtfZK4vtu93"
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Wokwi-GUEST";
char pass[] = "";
BlynkTimer timer;
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass, "iot.serangkota.go.id", 8080);
}
void loop()
{
Blynk.virtualWrite(V100, 218);
Blynk.virtualWrite(V101, 3.2);
Blynk.virtualWrite(V102, 697.6);
Blynk.virtualWrite(V103, 0.7);
Blynk.run();
timer.run();
}
BLYNK_WRITE (V1)
{
int i = param.asInt();
}