From a044c6550313beb99baeb9574570f4cc2995357e Mon Sep 17 00:00:00 2001 From: Marcus Date: Sat, 19 Oct 2024 04:36:39 +0200 Subject: [PATCH] first WiFi steps --- Arduino/CanGrow/CanGrow.ino | 1 + Arduino/CanGrow/include/CanGrow_Core.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Arduino/CanGrow/CanGrow.ino b/Arduino/CanGrow/CanGrow.ino index 9ea5beb..7acd431 100644 --- a/Arduino/CanGrow/CanGrow.ino +++ b/Arduino/CanGrow/CanGrow.ino @@ -137,6 +137,7 @@ void setup() { Serial.print(":: After configWifi.dhcp: "); Serial.println(configWifi.dhcp); + WifiAp(); } bool alrdySaved = false; diff --git a/Arduino/CanGrow/include/CanGrow_Core.h b/Arduino/CanGrow/include/CanGrow_Core.h index 1af4fb1..9729c79 100644 --- a/Arduino/CanGrow/include/CanGrow_Core.h +++ b/Arduino/CanGrow/include/CanGrow_Core.h @@ -52,4 +52,6 @@ void WifiConnect() { void WifiAp() { Serial.printf(":: [WiFi] create access point: %s\n", CANGROW_SSID); WiFi.softAPConfig(configWifi.ip, configWifi.gateway, configWifi.netmask); + WiFi.softAP(CANGROW_SSID); + Serial.println(":: [WiFi] access point started"); }