first WiFi steps

This commit is contained in:
Marcus 2024-10-19 04:36:39 +02:00
parent d4e1108759
commit a044c65503
2 changed files with 3 additions and 0 deletions

View file

@ -137,6 +137,7 @@ void setup() {
Serial.print(":: After configWifi.dhcp: "); Serial.print(":: After configWifi.dhcp: ");
Serial.println(configWifi.dhcp); Serial.println(configWifi.dhcp);
WifiAp();
} }
bool alrdySaved = false; bool alrdySaved = false;

View file

@ -52,4 +52,6 @@ void WifiConnect() {
void WifiAp() { void WifiAp() {
Serial.printf(":: [WiFi] create access point: %s\n", CANGROW_SSID); Serial.printf(":: [WiFi] create access point: %s\n", CANGROW_SSID);
WiFi.softAPConfig(configWifi.ip, configWifi.gateway, configWifi.netmask); WiFi.softAPConfig(configWifi.ip, configWifi.gateway, configWifi.netmask);
WiFi.softAP(CANGROW_SSID);
Serial.println(":: [WiFi] access point started");
} }