@@ -128,6 +128,11 @@ bool WiFiConfig::ConnectSTA2AP() {
128128 count++;
129129 status = WiFi.status ();
130130 }
131+ if (ESP3DSettings::isVerboseBoot ()) {
132+ esp3d_commands.dispatch (msg.c_str (), ESP3DClientType::all_clients, no_id,
133+ ESP3DMessageType::unique, ESP3DClientType::system,
134+ ESP3DAuthenticationLevel::admin);
135+ }
131136 return (status == WL_CONNECTED);
132137}
133138
@@ -330,10 +335,20 @@ bool WiFiConfig::begin(int8_t& espMode) {
330335 espMode = ESP3DSettings::readByte (ESP_STA_FALLBACK_MODE);
331336 NetConfig::setMode (espMode);
332337 if (espMode == ESP_AP_SETUP) {
338+ if (ESP3DSettings::isVerboseBoot ()) {
339+ esp3d_commands.dispatch (" Fallback mode is AP Setup" , ESP3DClientType::all_clients, no_id,
340+ ESP3DMessageType::unique, ESP3DClientType::system,
341+ ESP3DAuthenticationLevel::admin);
342+ }
333343 esp3d_log (" Starting AP mode in setup mode" );
334344 res = StartAP (true );
335345 } else {
336346 // let setup to handle the change
347+ if (ESP3DSettings::isVerboseBoot ()) {
348+ esp3d_commands.dispatch (" Fallback mode is not WiFi" , ESP3DClientType::all_clients, no_id,
349+ ESP3DMessageType::unique, ESP3DClientType::system,
350+ ESP3DAuthenticationLevel::admin);
351+ }
337352 res = true ;
338353 }
339354 }
0 commit comments