Просмотр исходного кода

persistent wifi connection, no sleep mode

master
gituser 1 месяц назад
Родитель
Сommit
af19126700
2 измененных файлов: 4 добавлений и 1 удалений
  1. 3
    0
      LEDLamp.ino
  2. 1
    1
      sloeber.ino.cpp

+ 3
- 0
LEDLamp.ino Просмотреть файл

void startAP() { void startAP() {


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


WiFi.softAP(ap_ssid, ap_pass); WiFi.softAP(ap_ssid, ap_pass);
delay(500); delay(500);


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

+ 1
- 1
sloeber.ino.cpp Просмотреть файл

//This is a automatic generated file //This is a automatic generated file
//Please do not modify this file //Please do not modify this file
//If you touch this file your change will be overwritten during the next build //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"
#include "Arduino.h" #include "Arduino.h"

Загрузка…
Отмена
Сохранить