瀏覽代碼

persistent wifi connection, no sleep mode

master
gituser 1 月之前
父節點
當前提交
af19126700
共有 2 個檔案被更改,包括 4 行新增1 行删除
  1. 3
    0
      LEDLamp.ino
  2. 1
    1
      sloeber.ino.cpp

+ 3
- 0
LEDLamp.ino 查看文件

@@ -76,6 +76,7 @@ void handleNotFound() {
void startAP() {

WiFi.mode(WIFI_AP);
WiFi.setSleepMode(WIFI_NONE_SLEEP);

WiFi.softAP(ap_ssid, ap_pass);
delay(500);
@@ -241,6 +242,8 @@ void handleBoot() {

void handleConnecting() {
if (WiFi.status() == WL_CONNECTED) {
WiFi.setAutoReconnect(true);
WiFi.persistent(true);
startSTAWebServer();
setState(STATE_STA_MODE);
return;

+ 1
- 1
sloeber.ino.cpp 查看文件

@@ -2,7 +2,7 @@
//This is a automatic generated file
//Please do not modify this file
//If you touch this file your change will be overwritten during the next build
//This file has been generated on 2026-07-18 16:25:01
//This file has been generated on 2026-08-16 18:24:50

#include "Arduino.h"
#include "Arduino.h"

Loading…
取消
儲存