From 03cbf82275e57ed95c7d6eedd01c81baa5222ae8 Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Sun, 16 Feb 2025 21:46:06 +0100 Subject: [PATCH] feat: add esp_wifi.h and set maximum transmit power in WiFi initialization --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 58862e3..50769d1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -169,6 +170,8 @@ void loop() { void initWiFi() { WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP + esp_wifi_set_max_tx_power(72); // Setze maximale Sendeleistung auf 20dBm + if(wm_nonblocking) wm.setConfigPortalBlocking(false); wm.setConfigPortalTimeout(320); // Portal nach 5min schließen