From ae827639aa24f28080b1ff9398cec13e11d2fe37 Mon Sep 17 00:00:00 2001 From: Muhammad Izza Alfiansyah Date: Mon, 10 Jun 2024 15:44:59 +0700 Subject: [PATCH] show wifi ssid on error connect --- microcontroller/sketch_apr22a/sketch_apr22a.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/microcontroller/sketch_apr22a/sketch_apr22a.ino b/microcontroller/sketch_apr22a/sketch_apr22a.ino index 737e2a4..bb9fcce 100644 --- a/microcontroller/sketch_apr22a/sketch_apr22a.ino +++ b/microcontroller/sketch_apr22a/sketch_apr22a.ino @@ -325,13 +325,15 @@ void loop(){ delay(1000); } } else { + Serial.println("Gagal terhubung ke " + WIFI_SSID); + lcd.clear(); lcd.setCursor(0, 0); lcd.print("Gagal terhubung"); lcd.setCursor(0, 1); - lcd.print("ke jaringan!"); + lcd.print("ke " + WIFI_SSID + "!"); - Serial.println("Gagal terhubung ke jaringan"); + delay(1000); } }