first WiFi steps
This commit is contained in:
parent
d4e1108759
commit
a044c65503
2 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue