declare mqtt cert and key as optional
This commit is contained in:
11
README.md
11
README.md
@@ -13,8 +13,6 @@ As an alternative, download a release:<br>
|
||||
https://github.com/technyon/nuki_hub/releases
|
||||
<br>Read the included readme.txt for installation instructions for either Espressif Flash Download Tools or esptool.
|
||||
|
||||
|
||||
|
||||
## Setup
|
||||
|
||||
The firmware uses the Wifi Manager to configure the WiFi network. Power up the ESP32, a new Access Point should appear. Connect to this access point and in a browser navigate to "192.168.4.1". Use the web interface configure your Wifi network.
|
||||
@@ -63,6 +61,15 @@ Just enable pairing mode on the NUKI lock (press button for a few seconds) and p
|
||||
### Misc
|
||||
- presence/devices: List of detected bluetooth devices as CSV. Can be used for presence detection
|
||||
|
||||
## MQTT Encryption
|
||||
|
||||
The communication via MQTT can be SSL encrypted. To enable SSL encryption, supply the necessary information in the MQTT Configuration page.
|
||||
The following configurations are supported:<br>
|
||||
|
||||
CA, CERT and KEY are empty -> No encryption<br>
|
||||
CA is filled but CERT and KEY are empty -> Encrypted MQTT<br>
|
||||
CA, CERT and KEY are filled -> Encrypted MQTT with client vaildation<br>
|
||||
|
||||
## Connecting via LAN (Optional)
|
||||
|
||||
If you prefer to connect to the MQTT Broker via LAN instead of WiFi, you can use a Wiznet W5x00 Module (W5100, W5200, W5500 are supported).
|
||||
|
||||
@@ -469,11 +469,13 @@ void WebCfgServer::buildMqttConfigHtml(String &response)
|
||||
printInputField(response, "MQTTPORT", "MQTT Broker port", _preferences->getInt(preference_mqtt_broker_port), 5);
|
||||
printInputField(response, "MQTTUSER", "MQTT User (# to clear)", _preferences->getString(preference_mqtt_user).c_str(), 30);
|
||||
printInputField(response, "MQTTPASS", "MQTT Password", "*", 30, true);
|
||||
printTextarea(response, "MQTTCA", "MQTT SSL CA Certificate", _preferences->getString(preference_mqtt_ca).c_str(), TLS_CA_MAX_SIZE);
|
||||
printTextarea(response, "MQTTCRT", "MQTT SSL Client Certificate", _preferences->getString(preference_mqtt_crt).c_str(), TLS_CERT_MAX_SIZE);
|
||||
printTextarea(response, "MQTTKEY", "MQTT SSL Client Key", _preferences->getString(preference_mqtt_key).c_str(), TLS_KEY_MAX_SIZE);
|
||||
printTextarea(response, "MQTTCA", "MQTT SSL CA Certificate (*, optional)", _preferences->getString(preference_mqtt_ca).c_str(), TLS_CA_MAX_SIZE);
|
||||
printTextarea(response, "MQTTCRT", "MQTT SSL Client Certificate (*, optional)", _preferences->getString(preference_mqtt_crt).c_str(), TLS_CERT_MAX_SIZE);
|
||||
printTextarea(response, "MQTTKEY", "MQTT SSL Client Key (*, optional)", _preferences->getString(preference_mqtt_key).c_str(), TLS_KEY_MAX_SIZE);
|
||||
printInputField(response, "NETTIMEOUT", "Network Timeout until restart (seconds; -1 to disable)", _preferences->getInt(preference_network_timeout), 5);
|
||||
response.concat("</table>");
|
||||
response.concat("* If no encryption is configured for the MQTT broeker, leave empty.<br>");
|
||||
|
||||
response.concat("<br><INPUT TYPE=SUBMIT NAME=\"submit\" VALUE=\"Save\">");
|
||||
response.concat("</FORM>");
|
||||
response.concat("</BODY></HTML>");
|
||||
|
||||
Reference in New Issue
Block a user