teswifi/teswifi.ino0000755000000000000000000000205414003736004011600 0ustar #define BLYNK_PRINT Serial // disable baris ini jika sudah fix #include // lib wifi #include // lib blynk //PASTE KODE TOKEN EMAIL char auth[] = "6qAcFMJWvhIbqVjZ5c0W_dszFTzUTBL8"; // cek console server bestblynk utk cek token sesui project char ssid[] = "wildan"; // ssid untuk konek internet char pass[] = "99887766"; // pass ssid void setup() { // Debug console (matikan jika sudah fix) Serial.begin(9600); //Blynk.begin(auth, ssid, pass, IPAddress(34,101,75,215)); // cara lain penuisan konek ke server lokal (diserial port tidak tampil) Blynk.begin(auth, ssid, pass, "34.101.75.215"); // server GCP bestblynk (penulisan boleh spt ini (diserial port tampil, buat troubleshoot) //Blynk.begin(auth, ssid, pass); // default jika pakai server blynk //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442); //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100)); Blynk.syncAll(); //This will sync the last state of your device } void loop() { Blynk.run(); }