Change default wifi mode to AP.

This commit is contained in:
Shibo Mu authored and GitHub committed 2024-08-31 10:48:49 +08:00
1 parent 178acaf39e
commit a9653a59af
1 file changed
+3 -3
+3 -3
View File
@@ -152,8 +152,8 @@ void setup() {
Serial2.begin(1000000);//腿部sts舵机 Serial2.begin(1000000);//腿部sts舵机
//Wifi初始化 //Wifi初始化
//WiFi_SetAP(); WiFi_SetAP();
set_sta_wifi(); // ESP-01S STA模式接入WiFi网络 // set_sta_wifi(); // ESP-01S STA模式接入WiFi网络
webserver.begin(); webserver.begin();
webserver.on("/", HTTP_GET, basicWebCallback); webserver.on("/", HTTP_GET, basicWebCallback);
websocket.begin(); websocket.begin();
@@ -566,4 +566,4 @@ void bat_check()
} }
else else
bat_check_num++; bat_check_num++;
} }