Как перевести esp easy в режим ap
#1 Post by eddieth » 25 Oct 2020, 19:22
Hi.
I would like to use espeasy as a standalone device working in AP mode. Is it possible to deactivate the auto turn off timer for access point?
Thank you for your response.
TD-er Core team member Posts: 8177 Joined: 01 Sep 2017, 22:13 Location: the Netherlands Contact:
Re: Espeasy only as AP
#2 Post by TD-er » 25 Oct 2020, 21:10
At the moment it can only be done via a trick.
As soon as the ESP found an access point to connect to, it starts a timer to turn off the AP.
When this timer expired, there is a last check to see if there’s someone connected to the AP.
If the AP of the ESP is still actively used, it will not be turned off.
So there are 2 ways you can keep it running as an AP only:
— Do not enter WiFi credentials to connect to an AP.
— Keep at least one station connected to the ESP’s AP.
I think not setting WiFi credentials is perhaps the simplest.
eddieth Normal user Posts: 4 Joined: 25 Oct 2020, 19:14
Re: Espeasy only as AP
#3 Post by eddieth » 25 Oct 2020, 21:21
Yes, I know all this. The problem is, this is supposed to be some kind of an extensive garage door controller and most of the time there will be no clients connected.
Is it possible to completely disable the AP mode time limits?
budman1758 Normal user Posts: 301 Joined: 15 Apr 2017, 05:13 Location: Riverside CA USA
Re: Espeasy only as AP
#4 Post by budman1758 » 25 Oct 2020, 21:40
Perhaps you could provide a bit more detail of your particular use case.
«The glass is twice as big as it needs to be».
eddieth Normal user Posts: 4 Joined: 25 Oct 2020, 19:14
Re: Espeasy only as AP
#5 Post by eddieth » 25 Oct 2020, 21:50
I want to build an esp8266 based driver for my garage. It will act as a temperature controller equipped with an oled display. In addition, I would like to be able to open the door using a smartphone. I did all this without a problem in ESPeasy, only the problem of disabling the AP remains. The garage is far out of range of my home wifi.
TD-er Core team member Posts: 8177 Joined: 01 Sep 2017, 22:13 Location: the Netherlands Contact:
Re: Espeasy only as AP
#6 Post by TD-er » 25 Oct 2020, 22:30
How far is «far»?
At least In now understand your desire to keep the AP mode active.
iron Normal user Posts: 205 Joined: 24 Sep 2016, 08:37 Location: Veria, Greece Contact:
Re: Espeasy only as AP
#7 Post by iron » 26 Oct 2020, 08:30
TD-er wrote: ↑ 25 Oct 2020, 22:30 How far is «far»?
At least In now understand your desire to keep the AP mode active.
Many cases require a «stand alone» mode in locations where internet connectivity is not an option. ESP has enough gpios and ESPEasy has a great rules engine that makes it ideal for this.
I believe there should be some sort of an option/check-mark that will officially force the ESP to an AP only mode (requires a couple of additional AP criteria, such as AP ssid and channel) and the standard web interface instead of the config page that becomes default when not connected to an AP.
Controllers and notifications tabs will probably need to be «hidden» to avoid misunderstandings.
TD-er Core team member Posts: 8177 Joined: 01 Sep 2017, 22:13 Location: the Netherlands Contact:
Re: Espeasy only as AP
#8 Post by TD-er » 26 Oct 2020, 09:58
As a matter of fact, I am -as we speak- looking into ways to implement this.
There have been some reports which make it clear the «wifi reconnect interval» should be more dynamic.
Reasons why this is needed:
— CPU load is too high when no AP can be found
— Connection Failure Threshold counter may increment too fast with the current (short) reconnect interval
— ESP may show «hopping» behavior between configured AP’s if network is busy or reception quality changes
— To conserve power we also need a «WiFi off» mode
— Some ESP units have poorly designed voltage regulators so they may need some (extra) delay
Apart form that, we now also have ethernet support on ESP32 and soon ESPEasy-Now.
So I started thinking about the currently way too complex WiFi code (partly a left-over from all the WiFi issues we had in the past) and I am now trying to think of a more intuitive way to manage all of this.
It is still a work in progress, but I’m thinking of something like this:
The user must be able to set a defined preference for a medium.
For example (just a random suggestion):
— Ethernet
— WiFi STA
— ESPEasy-Now
— WiFi STA+AP
— WiFi AP
But also there must be an option to set a minimal delay before (re)attempt to connect.
For example for battery powered units that could decide to turn the unit off when battery voltage is too low, or ones with weak voltage regulators.
Right now, we just have a logic similar to «we have WiFi credentials and no connection so retry to connect», which is a bit too simple.
This logic also uses very basic «time since last attempt», while it would make more sense to schedule a new attempt and cancel that attempt if no longer needed.
By scheduling the next attempt (for whatever medium), it becomes all much more simple and clean.
«WiFi off» or «WiFi AP only» state simply becomes «cancel scheduled action to reconnect».
Delayed WiFi connect at start is simply a matter of adding some user defined time to the schedule moment. (-1 for not starting at boot)
Preferred order of attempts may be as simple as schedule the next medium when the previous one failed to connect (or even schedule the next when attempting to connect the preferred medium)
Another way could be to have «Ethernet» and «WiFi STA» at the same preferred level, so start connect both at the same time and use the one finishing first.
So that’s what I’m thinking of right now.
It may become quite a big change, so I will probably do it in steps.
ESPEasy — готовая прошивка для ESP8266. Загрузка и настройка
Готовая прошивка «ESP Easy» позволит легко превратить любой модуль на базе ESP в многофункциональный сенсор или модуль для умного дома под управлением таких систем, как OpenHab и Domoticz. ESP Easy является отличным инструментом для изучения протокола MQTT.
Всё что вам необходимо сделать — это один раз загрузить прошивку ESP Easy на ваш модуль ESP, а дальше все настройки системы происходят в браузере с помощью удобного веб-интерфейса. Для ежедневной работы с модулем не нужны никакие дополнительные программы.

Последней стабильной версией прошивки ESP Easy является R120. Она хорошо подходит не только для домашних экспериментов, но и для производственных прототипов. Модуль с ESP Easy на борту может выступать в роли низкоуровневого управляющего устройства, но этот функционал в системе еще не полностью стабилен. Полный список возможных подключаемых дачиков, устройств ввода-вывода, реле и дисплеев можно посмотреть здесь.
Прошивка ESP Easy может быть установлена практически на любые платы на базе ESP8266. Вы можете прошить как самые простые модули типа ESP-01 или ESP-12, так и устройства типа NodeMCU development board, Wemos D1 и практически все устройства от производителя Sonoff. После прошивки вы сможете работать с GPIO 0, 1, 2, 3, 4, 5, 12, 13, 14, 15, 16, A0. Пин номер 9 не рекумендуется использовать из-за нестабильной работы. На модулях Sonoff будут доступны пины 0 (кнопка), 12 (Реле), 13 (Светодиод) и, возможно, еще несколько в зависимости от конкретной модели устройства.
Поддерживаются следующие протоколы для передачи данных и работы с системами умных домов: OpenHAB MQTT, Domoticz HTTP и MQTT, PiDome MQTT, ThingSpeak, EmonCMS, протокол HTTP и другие. Подробнее про работу с ними будет написано в разделе с примера использования.
С чего начать?
В большинстве случаев модули ESP продаются с предустановленными прошивками AT firmware или NodeMCU LUA firmware. Начать делать сенсоры на базе ESPEasy легко: нужно просто заменить стандартную прошивку на ESPEasy, и можно приступать к работе. Это можно сделать с помощью программы flashtool (к сожалению, она доступна только на Windows) или с помощью Arduino IDE. Во время установки мы будем действовать по следующей схеме:
1. С официального сайта скачать стабильную прошивку
В архиве также будет программа flash tool для прошивки
↓
2. Подключить модуль ESP к компьютеру
Используем USB/UART переходник для простых плат типа ESP-01 или просто подключаем Micro-USB к платам типа NodeMCU dev board.
↓
3. Загружаем ESPEasy на плату с помощью flash tool или Arduino IDE
Обратите внимание на то, что GPIO должен быть соединен с GND при включении для запуска режима прошивки на плате.
↓
4. Перезапускаем модуль ESP. Появляется WiFi сеть с названием «ESP_Easy_0». Подключаемся к ней
(в версии прошивки 2.0 точка доступа будет называться ESP_0)
Если страница настройки не открылась автометически, необходимо набрать 192.168.4.1 в вашем браузере
↓
5. В появившемся окне настраиваем подключение к вашей домашей WiFi сети и нажимаем Connect
↓
6. Модуль ESP перезагрузится и подключится к вашей домашней сети
↓
7. Откройте в браузере новый IP адрес платы ESP и начинайте собирать данные с сенсоров
Поздравляем, всё настроено, и вы можете начать работать с ESPEasy!
Скачиваем прошивку
Скачиваем стабильную версию прошивки с официального сайта — ESPEasy R120.
Подключаем модуль ESP к компьютеру
Для всех, кто только начинает разбираться с EPS, MQTT и умными домами, мы рекомендуем обратить внимание на модуль NodeMCU ESP8266 (он же NodeMCU dev board). У него есть ряд плюсов: встроенный преходник USB/UART, большое количество GPIO, аналоговый пин A0, не нужно подключать GPIO к GND для прошивки, наличие питания 5 и 3.3 вольта. Просто подключаете плату к компьютеру с помощью Micro-USB кабеля и начинаете работать. NodeMCU dev board позволит вам сэкономить большое количество времени! При программировании обратите внимание, что номер ножки не соответствует номеру GPIO.

Также встроенный переходник USB/UART есть на плате Wemos D1 Mini:

Если у вас плата без переходника, например, ESP-01 или ESP-12, или вы хотите прошить модули Sonoff, то вам понадобится переходник USB/TTL.
В обоих случаях дополнительно вам понадобится установить на компьютер драйвер для вашего встроенного или внешнего переходника USB/TTL.
Загрузка прошивки ESPEasy с помощью Flash Tool
Данный способ подходит только для компьютеров с Windows, но он самый простой! Сначала необходимо проверить к какому порту компьютера подключен наш ESP помуль. Подключаем модуль к компьютеру по USB. Открываем «Диспетчер устройвств», смотрим вкладку «Порты (COM и LPT)» и видим нашу плату. В моем случае порт COM4. Если ваше устройство не отображается в списке портов — значит вы не поставили драйвер для USB/TTL переходника.

Обратите нимание, что перед прошивкой модулей с внешнем адаптером USB/TTL их необходимо перевести в режим загрузки программного обеспечения. Для этого необходимо соединить GPIO0 на плате ESP с GND, воткнуть переходник в плату, а потом уже в USB. Если у вас NodeMCU или Wemos, то этого делать не нужно.
Распаковываем скаченный архив ESPEasy_R120.zip в папку ESPEasy_R120 и запускаем файл flash.cmd. Откроется черное окно, в котором необходимо будет ответить на несколько вопросов.

1 вопрос: Comport (example 3,4. ) — необходимо ввести номер порта, к которому подключен модуль ESP и нажать Enter. Я ввожу 4. Enter.
2 вопрос: Flash size (example 512, 1024 or 4096) — необходимо ввести количество памяти, которое доступно на нашей плате. Сколько памяти на вашей плате вы можете посмотреть в этой таблице. Для платы NodeMCU dev board вводим 4096. Enter.
3 вопрос: Build — необходимо ввести номер версии прошивки, которую вы загружаете. В нашем случае вводим 120. Enter.
В чёрном окне проскочет несколько строк с системным кодом, и начнут появляться точки, и через некоторое время система напишет, что загрузка завершена. Вы увидете такой экран:

Нажимаем любую клавишу. Прошивка ESPEasy успешно загружена на ваш модуль! Поздавляю! Переходим к пункту «Подключение и первичная настройка» в этой статье.
Возможные проблемы с Flash Tool
Если вы не видите своё устройство в диспетчере устройств, значит у вас не установлен драйвер переходника USB/TTL.
Если файлы не распаковать в папку, а просто запустить из архива, то после вопросов система выдаст ошибку, т.к. не сможет работать с файлом esptool.exe. Просто распакуйте архив в папку и заново запустите flash.cmd.
Если вам так и не удалось прошить модуль ESP с помощью flash.cmd, но плата видна в системе, то вы можете сделать прошивку программой ESPEasy Flasher. В ней надо будет только выбрать порт и соответствующую прошивку. В скаченной папке с прошивками будет 3 разных файла прошивок для плат с разным размером памяти.

Если у вас не получилось сделать загрузку ни одним из этих способов — вы можете попробовать сделать загрузку через Arduino IDE.
Загрузка прошивки ESPEasy с помощью Arduino IDE
Данный способ отлично подходит, если вы уже загружали свои собственные скетчи на плату через Arduino IDE и сейчас хотите попробовать поработать с ESPEasy. Если же вы раньше просто программировали ardunino и ни разу не прошивали esp8266, то предварительно вам необходимо подготовить Arduino IDE. Подробную инструкцию вы можете найти в нашей статье. Через Arduino IDE вы можете сделать загрузку как на Windows, так и на Mac OS.
В папке, которую вы скачали с официального сайта, кроме файлов последней прошивки и программы для загрузки также есть папка Source. В ней находятся два папки: в одной — необходимые библиотеки, во второй — файлы нашей прошивки. Копируете библиотеки из папки librares в папку с библиотеками ArduinoIDE на вашем компьютере.

На компьютерах Windows эта папка обычно: C:\Users\USERNAME\Documents\Arduino\librares — в папке с вашими документами.
На Mac OS: \Users\USERNAME\Documents\Arduino\librares — в папке с вашими документами.
Дальше заходим во вторую папку из скаченного архива (\Source\ESPEasy) и запускаем оттуда файл ESPEasy.ino. Откроется Arduino IDE.

Теперь в меню «Инструменты» необходимо выбрать порт, тип платы, размер памяти. Какие параметры выбирать для разных плат и как настраивать Arduino IDE для работы с ESP вы может прочитать в нашей отдельной статье.
Для NodeMCU dev board выбираем параметры как на картинке + выбираем свой порт.

Заходим в меню «Скетч» и выбираем «Загрузка»

В Arduino IDE внизу в чёрной консоли пробежит несколько строчек системных сообщений, потом появится несколько строчек с точками и программа напишет, что загрузка прошла успешно. Если программа выдаёт строчки с оранжевыми ошибками, то скорее всего у вас проблемы с подключение платы к компьютеру.
Прошивка загружена на модуль ESP, теперь мы можем переходить к настройке.
Подключение и первичная настройка
Теперь на своём компьютере откройте список доступных Wi-Fi сетей — в списке должна появиться сеть ESP_0 (В некоторых версиях прошивки возможно будет Esp_Easy_0). Подключитесь к ней (стандартный пароль configesp).
Если ваш браузер не открыл автоматически страницу настройки EspEasy, то в адресной строке браузера наберите 192.168.4.1. В появившемся окне необходимо выбрать вашу домашнюю wi-fi, ввести пароль от нее в поле password и нажать кнопку Connect.

Вы увидите сообщение о том, что система перезагружается.

После этого ваш компьютер отключится от сети Esp и подключится обратно к вашей домашнией Wi-Fi сети. В браузере покажется ip адрес вашего esp. В адресной строке вашего браузера введите ip esp модуля (например, 192.168.1.65). Откроется окно с основный информацией о модуле esp, на котором вы можете посмотреть: беспрырывное время работы модуля, уровень сигнала, ip адрес модуля и точки доступа, версию прошивки, MAC адреса, информация о свободной памяти и список других esp модулей в сети.

Вверху расположено меню для перехода в разделы системы. Зайдите во вкладку Config. Здесь находятся основные настройки системы, рассмотрим их подробнее.
1. Name — имя вашего ESP модуля. Оно используется как сетевое имя, а также для идентификации каналов при работе по MQTT протоколу.
2. Admin Password используется для установки пароля на настройки. По умолчанию пароля нет, но если его установить, то при открытии ip адреса вашего esp модуля необходимо будет ввести пароль. Только в этом случае вы сможете редактировать настройки. Это очень удобно, если вы используете свои модули в публичных местах.
3. SSID, WPA Key — используется для подключения к вашей домашней Wi-Fi сети.
4. WPA AP Mode Key — данный пароль используется в том случае, если ваш esp модуль работает в режиме точки доступа.
5. Unit nr — это номер машего модуля в сети. Для корректной работы системы он должен быть уникальным для каждого esp модуля.
6. Protocol и следующие за ним поля отвечают за выбор и настройку сетевого протокола, по которому ваш esp модуль взаимодействует с сервером умного дома или облачным сервером сбора данных. Мы можем выбрать OpenHAB MQTT, Domoticz MQTT, PiDome MQTT и ThingSpeak и другие менее популярные варианты.
7. Sensor Delay отвечает за то, как часто данные с модуля ESP отправляются на сервер. Значение необходимо писать в секундах.
8. Sleep Mode используется для перевода устройства в режим глубокого сна. Используйте этот параметр только после полной настройки вашего устройста.

В разделе Hardware вы можете выбрать какой светодиод на плате будет отвечать за состояние Wi-Fi подключения, а также выставить дефолтные состояния пинов. Во вкладке Rules можно настроить простые правила автоматизации. Обратите внимание, что по умолчанию данная вкладка не отображается. В разделе Devices происходит добавление и настройка датчиков и управляемых девайсов. В разделе Tools находятся более тонкие настройки, а также есть поле для выполнения команд.
В данной статье мы рассказали вам о том, что из себя представляет готовая прошивка EspEasy, для чего ее можно использовать, как прошить ее ваш ESP модуль, а также как провести первичные настройки. В следующих статьях мы подробно расскажем о том, как использовать EspEasy в ваших проектах. Поключим к плате ESP самые популярные датчики, поробуем передавать данные с них в облачный сервер ThingSpeak и построить по ним графики. Также мы подключить ESP модуль к умному дому на базе OpenHAB по протоколу MQTT — будем собирать данные с датчиков и управлять светодиодами.
Saved searches
Use saved searches to filter your results more quickly
Cancel Create saved search
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to reset settings to default or enter AP mode using a physical button #2678
Misiu opened this issue Oct 22, 2019 · 10 comments
Ability to reset settings to default or enter AP mode using a physical button #2678
Misiu opened this issue Oct 22, 2019 · 10 comments
Type: Discussion Open ended discussion (compared to specific question) Type: Feature Request Add a completely new feature (e.g. controller/plugin)
Comments
Misiu commented Oct 22, 2019
This is a feature request more than a bug.
I’m preparing four temperature sensors that I want to mount in my parent’s house. I’ve set up everything at my place and now I want to move sensors to their place.
When setting everything up I’ve entered my SSID and password, now when I attach the devices in my parent’s house they won’t connect (different SSID).
I’ve searched the forum and Github and I didn’t find a way to manually enter AP mode (to be able to connect via my phone and change WiFi settings) or to do a factory reset.
If this is currently possible please let me know how to do that.
My hardware is: Wemos D1 mini and DS18B20 as sensors.
The text was updated successfully, but these errors were encountered:
ghtester commented Oct 22, 2019 •
It’s already there, of course you should have configured it properly before and a button connected to some GPIO. See the Hardware tab — Reset Pin. Then you can press the button for about 10 sec to reset ESP_Easy to Factory Defaults.
BTW. I would like to have the opposite functionality — an option to disable the AP mode permanently (and start it only when the button is pressed).
Misiu commented Oct 22, 2019
@chemmex I didn’t know that ESPEasy will enter AP mode if it won’t find WiFi.
Thank You for the hint!
@ghtester should I connect a button between let’s say D7 and GND or D7 and 3.3V? I saw multiple schemas on the internet and I don’t want to damage my devices.
ghtester commented Oct 22, 2019 •
I don’t know if the Reset Pin is active LOW or HIGH — perhaps it’s mentioned somewhere but I did not use it so far. I don’t recommend to connect a GPIO by button directly to 3,3V or to ground. If the GPIO is not configured properly (i.e as output instead of input), the direct connection, especially to 3,3V, could damage it. To be safe, I would put a 1k resistor in series to GPIO. In addition, there should be a pull-up (to 3,3V) or pull-down (to ground) resistor about 10k to GPIO and a button connecting 1k resistor (opposite end than to GPIO) to ground or to 3,3V.
Also look here: https://www.letscontrolit.com/wiki/index.php/Switch
TD-er commented Oct 23, 2019
There is also an option to reset to factory default by connecting RX and TX to each other at boot.
This may not work if serial was disabled by the way.
TD-er added Type: Discussion Open ended discussion (compared to specific question) Type: Feature Request Add a completely new feature (e.g. controller/plugin) labels Oct 23, 2019
Config page¶
The name of this node. This is mainly used when connecting to a MQTT broker or in p2p communications. It is also used to generate a hostname in the local network, for example when using mDNS.
2023-01-27: Variables like %unit_0% , %ip4% etc. can be used as (part of) the Name, and will be expanded anywhere the name is used. If the Append Unit Number to hostname setting is enabled, the name will not get the unit number appended, but the Hostname will have the unit number appended.
Unit Number¶
The number of this node. It can be appended to the hostname.
The main use of the unit number is in ESPEasy p2p communications. When used in p2p communications, make sure not to use unit number 0 or 255 as those are reserved.
Append Unit Number to hostname¶
A flag to indicate how the hostname must be generated from Unit Name and Unit Number.
N.B. currently it is used in all occurences where a hostname is needed, but this appeared to be not working well for some MQTT brokers. So expect it to be changed later to split this flag for every occasion where a hostname is needed.
Admin Password¶
A password to prevent altering settings in the web interface.
Default password is empty.
N.B. when asked for a login prompt, the user name is admin
WiFi Settings¶
A WiFi capable device can operate in two modes:
- Station mode (STA), device needs to connect to an access point.
- Access Point mode (AP), other STA devices can connect to this device.
An AP will broadcast an identifier string, called the SSID.
For an STA device to connect to an AP, two parameters are needed:
- SSID — The identifier string of an AP.
- WPA key — The password or pass phrase to make a connection.
N.B. when using the mentioned commands to set SSID/key, don’t forget to call the save command.
SSID¶
The AP identifier string to connect to. This is needed when running in STA mode.
Can also be set via the command wifissid .
WPA Key¶
The password or pass phrase to connect to the AP with given SSID.
Can also be set via the command wifikey .
Fallback SSID / WPA Key¶
This is an alternate to the first configured SSID/key.
There are various use cases to have multiple AP configurations stored on a node. For example to be able to move to anothe location where only another AP can be reached. Or as a backup, for example to let the node connect to a local hotspot on your phone.
Can also be set via the commands:
WPA AP Mode Key¶
It is possible a node cannot connect to an AP:
- When there is no SSID configured
- The configured AP’s are not in reach
- The configured AP’s do not allow the node to connect
In these situations the ESP node will start its own local AP.
As SSID the Unit Name will be used, which is by default ESP_Easy_0
The default WPA key to connect to this AP is configesp , but can be changed here.
This is often used to perform the initial configuration like connecting to the local network.
Can also be set via the command WiFiAPKey .
Don’t force /setup in AP-Mode¶
Allow optional usage of ESPEasy without WIFI avaiable.
When checked you can use ESPEasy in AP-Mode without beeing forced to /setup .
Do Not Start AP¶
Usually the AP will be started when no WiFi is defined, or the defined one cannot be found. This flag may prevent to start an AP.
Since this flag can lock out a user, there is a restricted command to uncheck this.
WifiAllowAP will uncheck this flag in the settings until a reboot. If the settings are saved, this flag will remain unchecked.
N.B. Restricted means, not accepted from a remote source, only local or via serial.
Custom Build WiFi credentials¶
For custom builds, one can set default WiFi credentials by defining some default credentials at build. See the examples in Custom-sample.h :
- #define DEFAULT_SSID «MyHomeSSID» // Enter your network SSID
- #define DEFAULT_KEY «MySuperSecretPassword» // Enter your network WPA key
- #define DEFAULT_SSID2 «» // Enter your fallback network SSID
- #define DEFAULT_KEY2 «» // Enter your fallback network WPA key
Custom builds can also be customized a bit more to allow for a deployment SSID configuration and an emergency fallback.
Deployment & Support SSID will be used only when the configured SSIDs are not reachable and/or no credentials are set. This to make deployment or support of large number of nodes easier. This configured set of credentials will be considered a “low priority” set, thus it will be tried as last resort. Therefore it may take a while for a unit to connect to it if there are lots of ‘hidden SSID’ APs and connecting to hidden SSIDs is allowed.
- #define CUSTOM_DEPLOYMENT_SSID «» // Enter SSID not shown in UI, to be used on custom builds to ease deployment
- #define CUSTOM_DEPLOYMENT_KEY «» // Enter key not shown in UI, to be used on custom builds to ease deployment
- #define CUSTOM_SUPPORT_SSID «» // Enter SSID not shown in UI, to be used on custom builds to ease support
- #define CUSTOM_SUPPORT_KEY «» // Enter key not shown in UI, to be used on custom builds to ease support
Emergency fallback SSID will only be attempted in the first 10 minutes after reboot. When found, the unit will connect to it and depending on the built in flag, it will either just connect to it, or clear set credentials.
Use case: User connects to a public AP which does need to agree on an agreement page for the rules of conduct (e.g. open APs) This is seen as a valid connection, so the unit will not reconnect to another node and thus becomes inaccessible. The AP configured with these fallback credentials will then act as a master key to regain access to a node.
These will never be set in nightly builds and only allowed for custom builds for obvious reasons.
- #define CUSTOM_EMERGENCY_FALLBACK_SSID «» // Enter SSID not shown in UI, to be used to regain access to the node
- #define CUSTOM_EMERGENCY_FALLBACK_KEY «» // Enter key not shown in UI, to be used to regain access to the node
- #define CUSTOM_EMERGENCY_FALLBACK_RESET_CREDENTIALS false
- #define CUSTOM_EMERGENCY_FALLBACK_START_AP false
- #define CUSTOM_EMERGENCY_FALLBACK_ALLOW_MINUTES_UPTIME 10
Client IP filtering¶
Sometimes it can be useful to only allow access to the web interface of a node from a specific range of IP-addresses.
For example if a node should only be configured from the local subnet.
Client IP block level¶
- Allow All — No filtering applied, the web interface can be accessed from any IP able to reach the node. (default)
- Allow Local Subnet — Only allow access to the web interface from the local subnet.
- Allow IP range — Only allow access to the web interface from a specific IP range.
Access IP lower range¶
When Allow IP range is set, this field defines the lower bound of the range.
Access IP upper range¶
When Allow IP range is set, this field defines the upper bound of the range.
WiFi/Ethernet IP Settings¶
For both WiFi and Ethernet a node can be configured to receive an IP automatically via DHCP, or use a static IP.
If all fields for IP, GW, subnet mask and DNS are left empty, the configuration offered via DHCP will be used.
- IP The static IPv4 address to use for this node
- Gateway IPv4 address of the gateway to reach hosts outside this subnet. (typically the IP of the router)
- Subnetmask Mask applied to define the local subnet. (typically: 255.255.255.0 )
- DNS IPv4 address of a DNS server to use. (typically the IP of the router or some assigned by the ISP)
Sleep Mode¶
Description¶
The ESP can be put into deep sleep for a set amount of time.
On an ESP8266, GPIO-16 must be connected to the RST pin to be able to wake up again.
As long as the node is in deep sleep mode, you can’t connect to the web interface. In fact, the ESP is turned off and only a dedicated timer circuit is still powered to wake up the main ESP core.
There are three ways to get out of sleep mode:
Cold boot¶
Power off the ESP and reconnect power. You will have 30 seconds to connect to the Web interface and disable the Sleep Mode function. (You will get feedback in the serial interface)
Temporary disable Deep Sleep via jumper setting¶
If 30 seconds is too short for you, you can use this method.
- Disconnect GPIO-16 from RST and connect it to GND. Restart your ESP if neccesary.
- Now deep sleep will be disabled and your ESP will function normally, until you connect GPIO-16 to RST again.
This requires ESPEasy v2.0.0-dev6 or newer.
Factory reset¶
If all else fails, just do a factory reset. You will lose all your settings!
- Connect the RX and TX pin together while you restart your ESP. (will clear all stored settings)
- Power off the device.
- Remove the connector across the RX and TX pins.
- Restart and then configure the ESPEasy firmware again. (at restart factory default settings will be loaded)
If this doesn’t work:
- Try loading the blank image to match the size of the memory installed on the device.
- Reboot and wait 5 minutes.
- Then load on the firmware you are wanting to use.
- Reboot and wait 5 minutes.
Sleep awake time¶
This setting defines the minimum time in seconds a node should be awake from deep sleep.
If set to 0, the node will not go into deep sleep automatically.
At boot from deep sleep, a timer is started based on this setting. If this timer expires, the node will enter deep sleep again.
As soon as the node has a successful WiFi connection, the timer will be restarted to allow to send out sensor data.
N.B. It is possible to put a node into deepsleep via the command deepsleep , regardless this setting.
Sleep time¶
The duration in seconds for a node to go into deep sleep.
Typical max. duration is 4294 seconds (Roughly 71 minutes)
N.B. the maximum possible duration depends on the used core library version and is mentioned at the configuration page.
Sleep on connection failure¶
Support us by using one of these alternatives: Patreon Ko-Fi PayPal
© Copyright 2018-2023, ESP Easy.
Created using Sphinx 4.5.0.