กำลังทดลองการใช้ blynk ปิด เปิด LED แต่ blynk wasn't online yet ต้องทำยังไงคะ

เราต้องเพี่มคำว่า

char sever[] = "oasiskit.com";
int port = 8080;

และ "oasiskit.com", 8080 เข้าไปตามโคดขางเลียนะขะ

#define BLYNK_PRINT Serial
int pin =(16);
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
char auth[] = "43a5329e7dda4e66b56c52671a3d93ae";
char ssid[] = "vivo 1806";
char pass[] = "12345678";
char sever[] = "oasiskit.com";
int port = 8080;
void setup() {
Serial.begin(115200);
Blynk.begin(auth, ssid, pass, "oasiskit.com", 8080);
}
void loop() {
  Blynk.run();
}
1 Likes