Wifi managers improvements (#503)
* Add parameters to wifi manager: gateway name and base topic Enable to restart the ESP and erase the parameters by MQTT
This commit is contained in:
1 parent
a05fd01505
commit
4b1f09b06b
41 files changed
+308
-196
No files matched your search
@@ -12,7 +12,7 @@
|
||||
*Example for the use of RF gateway*
|
||||
```C++
|
||||
#define ZgatewayRF "RF" //ESP8266, Arduino, ESP32
|
||||
//#define ZgatewayIR "IR" //ESP8266, Arduino, Sonoff RF Bridge
|
||||
//#define ZgatewayIR "IR" //ESP8266, Arduino, Sonoff RF Bridge
|
||||
//#define ZgatewayLORA "LORA" //ESP8266, Arduino, ESP32
|
||||
//#define ZgatewayPilight "Pilight" //ESP8266, Arduino, ESP32
|
||||
//#define ZgatewayBT "BT" //ESP8266, ESP32
|
||||
@@ -24,3 +24,5 @@
|
||||
* Open the serial monitor and set 115200 bauds
|
||||
* Upload ➡️
|
||||
* You should see the logs into the serial monitor
|
||||
|
||||
With an ESP if you did not set your network and mqtt parameters manualy you can now open the [web portal configuration](portal.md).
|
||||
+2
-18
@@ -32,22 +32,6 @@ https://github.com/marcelstoer/nodemcu-pyflasher/releases
|
||||
* Click on *FlashNodeMCU*
|
||||
The upload details appears.
|
||||
|
||||
With an ESP if you did not set your network and mqtt parameters manualy you can now open the [web portal configuration](portal.md).
|
||||
|
||||
Note that to reset the wifi and mqtt settings you can check *yes, wipes all data*
|
||||
|
||||
Once loaded into your board you have to set your network parameters with wifi manager portal
|
||||
From your smartphone search for your OpenMQTTGateway wifi network and connect to it, a web page will appear
|
||||
* Select your wifi
|
||||
* Set your wifi password
|
||||
* Set your MQTT Server IP
|
||||
* Set your MQTT Server username (not compulsory)
|
||||
* Set your MQTT Server password (not compulsory)
|
||||
|
||||
The ESP restart and connect to your network. Note that your credentials are saved into the ESP memory, if you want to redo the configuration you have to erase the ESP memory with the flash download tool.
|
||||
|
||||
_The default password for wifi manager is "your_password"_
|
||||
|
||||
Once done the gateway should connect to your network and your broker, you should see it into the broker in the form of the following messages:
|
||||
```
|
||||
home/OpenMQTTGateway/LWT Online
|
||||
home/OpenMQTTGateway/version
|
||||
```
|
||||
@@ -111,3 +111,5 @@ If you want to use HASS MQTT discovery you need to have
|
||||
`#define ZmqttDiscovery "HADiscovery"`
|
||||
uncommented.
|
||||
Added to that auto discovery box should be selected into your Home Assistant MQTT integration configuration.
|
||||
|
||||
With an ESP if you did not set your network and mqtt parameters manualy you can now open the [web portal configuration](portal.md).
|
||||
@@ -0,0 +1,24 @@
|
||||
# Wifi and MQTT configuration portal
|
||||
|
||||
Once loaded into your board and if you don't use the manual configuration you have to set your network parameters with wifi manager portal.
|
||||
From your smartphone search for your OpenMQTTGateway wifi network and connect to it, a web page will appear
|
||||
* Select your wifi
|
||||
* Set your wifi password
|
||||
* Set your MQTT Server IP
|
||||
* Set your MQTT Server username (not compulsory)
|
||||
* Set your MQTT Server password (not compulsory)
|
||||
* Set your MQTT base topic (you must keep the / at the end)
|
||||
* Set your gateway name
|
||||
|
||||
The ESP restart and connect to your network. Note that your credentials are saved into the ESP memory, if you want to redo the configuration you have to erase the ESP memory with the flash download tool.
|
||||
|
||||
_The default password for wifi manager is "your_password"_
|
||||
|
||||
Once done the gateway should connect to your network and your broker, you should see it into the broker in the form of the following messages:
|
||||
```
|
||||
home/OpenMQTTGateway/LWT Online
|
||||
home/OpenMQTTGateway/version
|
||||
```
|
||||
|
||||
Note that the web portal appears only on first boot, if you want to configure again the setting you can do a long press on TRIGGER_PIN.
|
||||
|
||||
Reference in new issue
Block a user