From cb333a5a385b459f3b787378b627b137e32542dc Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 16 Feb 2025 12:42:14 +0100 Subject: [PATCH] wifi begin is needed to get MAC address (#23011) --- tasmota/tasmota_xdrv_driver/xdrv_57_9_tasmesh.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_57_9_tasmesh.ino b/tasmota/tasmota_xdrv_driver/xdrv_57_9_tasmesh.ino index e3b111229..c7c230a48 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_57_9_tasmesh.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_57_9_tasmesh.ino @@ -422,6 +422,7 @@ void MESHstartNode(int32_t _channel, uint8_t _role){ //we need a running broker void MESHstartBroker(void) { // Must be called after WiFi is initialized!! Rule - on system#boot do meshbroker endon #ifdef ESP32 WiFi.mode(WIFI_AP_STA); + WiFi.AP.begin(); AddLog(LOG_LEVEL_INFO, PSTR("MSH: Broker MAC %s"), WiFi.softAPmacAddress().c_str()); WiFi.softAPmacAddress(MESH.broker); //set MESH.broker to the needed MAC uint32_t _channel = WiFi.channel();