Nano AP fully power Control support

The idea to switch to an array based power Control was discarded for now
This commit is contained in:
atc1441
2023-06-07 01:00:40 +02:00
parent 8e31a1b8eb
commit 064bd4258c
4 changed files with 33 additions and 8 deletions

View File

@@ -228,15 +228,16 @@ void init_web() {
WiFiManager wm;
bool res;
#ifdef OPENEPAPERLINK_MINI_AP_PCB
#if defined(OPENEPAPERLINK_MINI_AP_PCB) || defined(OPENEPAPERLINK_NANO_AP_PCB)
WiFi.setTxPower(WIFI_POWER_15dBm);
#endif
wm.setWiFiAutoReconnect(true);
res = wm.autoConnect("OpenEPaperLink Setup");
if (!res) {
Serial.println("Failed to connect");
ESP.restart();
}
#ifdef OPENEPAPERLINK_MINI_AP_PCB
#if defined(OPENEPAPERLINK_MINI_AP_PCB) || defined(OPENEPAPERLINK_NANO_AP_PCB)
WiFi.setTxPower(WIFI_POWER_19_5dBm);
#endif
Serial.print("Connected! IP address: ");