mirror of
				https://github.com/luc-github/ESP3D.git
				synced 2025-10-24 11:50:52 -07:00 
			
		
		
		
	Update wificonfig.cpp
This commit is contained in:
		| @@ -128,6 +128,11 @@ bool WiFiConfig::ConnectSTA2AP() { | |||||||
|     count++; |     count++; | ||||||
|     status = WiFi.status(); |     status = WiFi.status(); | ||||||
|   } |   } | ||||||
|  |   if (ESP3DSettings::isVerboseBoot()) { | ||||||
|  |     esp3d_commands.dispatch(msg.c_str(), ESP3DClientType::all_clients, no_id, | ||||||
|  |                             ESP3DMessageType::unique, ESP3DClientType::system, | ||||||
|  |                             ESP3DAuthenticationLevel::admin); | ||||||
|  |   } | ||||||
|   return (status == WL_CONNECTED); |   return (status == WL_CONNECTED); | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -330,10 +335,20 @@ bool WiFiConfig::begin(int8_t& espMode) { | |||||||
|       espMode = ESP3DSettings::readByte(ESP_STA_FALLBACK_MODE); |       espMode = ESP3DSettings::readByte(ESP_STA_FALLBACK_MODE); | ||||||
|       NetConfig::setMode(espMode); |       NetConfig::setMode(espMode); | ||||||
|       if (espMode == ESP_AP_SETUP) { |       if (espMode == ESP_AP_SETUP) { | ||||||
|  |          if (ESP3DSettings::isVerboseBoot()) { | ||||||
|  |             esp3d_commands.dispatch("Fallback mode is AP Setup", ESP3DClientType::all_clients, no_id, | ||||||
|  |                                     ESP3DMessageType::unique, ESP3DClientType::system, | ||||||
|  |                                     ESP3DAuthenticationLevel::admin); | ||||||
|  |           } | ||||||
|         esp3d_log("Starting AP mode in setup mode"); |         esp3d_log("Starting AP mode in setup mode"); | ||||||
|         res = StartAP(true); |         res = StartAP(true); | ||||||
|       } else { |       } else { | ||||||
|         // let setup to handle the change |         // let setup to handle the change | ||||||
|  |          if (ESP3DSettings::isVerboseBoot()) { | ||||||
|  |           esp3d_commands.dispatch("Fallback mode is not WiFi", ESP3DClientType::all_clients, no_id, | ||||||
|  |                                   ESP3DMessageType::unique, ESP3DClientType::system, | ||||||
|  |                                   ESP3DAuthenticationLevel::admin); | ||||||
|  |         } | ||||||
|         res = true; |         res = true; | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user