-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Just a question really, have you tried this "successfully" in WiFi client mode or just in AP mode ?
The reason I'm asking is I was thinking about adding other notification methods (e.g. slack webhook or similar), for no reason other than it's something to do.
I made a couple of minor changes to make the ESP32 available on a local network and it connects just fine.
The IP is output to the LCD and Serial prior to the welcome messages and I can access the Web UI no problem.
It then sits waiting for a card to be swiped as usual.
However for some reason, swiping a card doesn't register, there is the usual beep and LED flash but no serial or web notifications.
I'm a tad perplexed how such a simple change could interfere with the card swipe functionality, unless client mode WiFi some how interferes with the data pins connected with the reader ¯\_(ツ)_/¯
If you wanted to try this out, this is all I did.
Added consts for ssid and password then modified the setupWifi function as follows...
void setupWifi() {
WiFi.begin(ssid, password);
WiFi.setSleep(false);
lcd.clear();
lcd.setCursor(0, 0);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
lcd.print("*");
}
const String local_ip = WiFi.localIP().toString();
Serial.println("");
Serial.println("WiFi connected");
Serial.print(local_ip);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print(centerText("WiFi connected", 20));
lcd.setCursor(0, 2);
lcd.print(centerText(local_ip, 20));
delay(5000);
}