[SYS] Increase mqtt username, base topic, otapassword and mqtt password max length (#1757)
fix #1746
This commit is contained in:
1 parent
592dcd3be6
commit
8a124c8841
3 files changed
+6
-6
No files matched your search
@@ -22,7 +22,7 @@ The gateway will need an MQTT username and password, you have to create a new us
|
||||

|
||||
|
||||
::: warning Note
|
||||
The max size of the username is 30 and 60 for the password.
|
||||
The max size of the username and password is 64 characters.
|
||||
:::
|
||||
|
||||
OMG will use the auto discovery functionality of home assistant to create gateway and sensors into your HASS instance automatically.
|
||||
|
||||
@@ -22,11 +22,11 @@ Once connected to the WiFi, a web page should appear. On Android, you may also h
|
||||
* Set your MQTT Server Port (default: 1883)
|
||||
* Set the MQTT secure connection box to select whether or not the connection should be secure
|
||||
* Copy/paste the MQTT server certificate in the MQTT server cert box (only required if using a secure connection), be sure to include the `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----` markers
|
||||
* Set your MQTT Server username (optional)
|
||||
* Set your MQTT Server password (optional)
|
||||
* Set your MQTT base topic if you need to change it (you must keep the / at the end) (default: home/)
|
||||
* Set your MQTT Server username (optional, 64 characters maximum)
|
||||
* Set your MQTT Server password (optional, 64 characters maximum)
|
||||
* Set your MQTT base topic if you need to change it (you must keep the / at the end) (default: home/, 64 characters maximum)
|
||||
* Set your gateway name if you need to change it
|
||||
* Set your Over The Air password `ota_password`, this password is used for local and remote OTA - it is also the password being used for the WebUI login. (default: OTAPASSWORD)
|
||||
* Set your Over The Air password `ota_password`, this password is used for local and remote OTA - it is also the password being used for the WebUI login. (default: OTAPASSWORD, 64 characters maximum)
|
||||
|
||||
* Click on save
|
||||
|
||||
|
||||
+1
-1
@@ -150,7 +150,7 @@ const byte mac[] = {0xDE, 0xED, 0xBA, 0xFE, 0x54, 0x95}; //W5100 ethernet shield
|
||||
/*-------------DEFINE YOUR MQTT PARAMETERS BELOW----------------*/
|
||||
//MQTT Parameters definition
|
||||
#if defined(ESP8266) || defined(ESP32) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1280__)
|
||||
# define parameters_size 60
|
||||
# define parameters_size 64
|
||||
# define mqtt_topic_max_size 150
|
||||
# ifndef mqtt_max_packet_size
|
||||
# ifdef MQTT_HTTPS_FW_UPDATE
|
||||
|
||||
Reference in new issue
Block a user