unable to save mqtt server url, user and password
I can not save the mqtt server settings in the Web UI.
To Reproduce Use the web install with an esp32 dev board and "esp32dev-ble-broker" - I tried two different esp32 boards with complete device erase Configure WiFi with the temporary AP Connect as admin user to the module over the normal wifi with the browser. I tried Firefox and Chrome Go to configuration - mqtt and enter mqtt server, user name and password. tried "10.0.14.202" "a" "a" The device reboots at the first run but comes back with no MQTT server in the WebUI. There is also no attempt from the device to connect to the mqtt server ip at all. When entering the mqtt details an additional time the device does not want to reboot at all.
Expected behavior The device should store the mqtt server, username and password. The device should display the entered data in the web ui. The device should connect to the MQTT server.
Environment (please complete the following information):
- OpenMQTTGateway version 1.8.1
Additional context 21:15:23.950 -> ets Jun 8 2016 00:22:57 21:15:23.950 -> 21:15:23.950 -> rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) 21:15:23.950 -> configsip: 0, SPIWP:0xee 21:15:23.950 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 21:15:23.950 -> mode:DIO, clock div:2 21:15:23.983 -> load:0x3fff0030,len:1184 21:15:23.983 -> load:0x40078000,len:13192 21:15:23.983 -> load:0x40080400,len:3028 21:15:23.983 -> entry 0x400805e4 21:15:24.644 -> N: 21:15:24.644 -> ************* WELCOME TO OpenMQTTGateway ************** 21:15:24.744 -> [ 135][E][Preferences.cpp:50] begin(): nvs_open failed: NOT_FOUND 21:15:24.744 -> N: SYS config not found 21:15:24.777 -> N: OpenMQTTGateway Version: v1.8.1 21:15:24.777 -> N: No config file found defining default values 21:15:24.777 -> N: No config in flash, launching wifi manager 21:15:24.909 -> N: Attempting Wifi connection with saved AP: 0 21:15:24.909 -> [ 302][E][WiFiSTA.cpp:317] begin(): connect failed! 0x300a 21:15:25.934 -> N: Attempting Wifi connection with saved AP: 1 21:15:25.934 -> [ 1310][E][WiFiSTA.cpp:317] begin(): connect failed! 0x300a 21:15:26.926 -> N: Attempting Wifi connection with saved AP: 2 21:15:26.926 -> [ 2317][E][WiFiSTA.cpp:317] begin(): connect failed! 0x300a 21:15:27.951 -> N: Attempting Wifi connection with saved AP: 3 21:15:27.951 -> [ 3324][E][WiFiSTA.cpp:317] begin(): connect failed! 0x300a 21:15:28.942 -> N: Attempting Wifi connection with saved AP: 4 21:15:28.942 -> [ 4331][E][WiFiSTA.cpp:317] begin(): connect failed! 0x300a 21:15:29.934 -> N: Connect your phone to WIFI AP: OMG_ESP32_BLE with PWD: 21:15:29.967 -> *wm:AutoConnect 21:15:29.967 -> *wm:No wifi saved, skipping 21:15:29.967 -> *wm:AutoConnect: FAILED 21:15:29.967 -> *wm:StartAP with SSID: OMG_ESP32_BLE 21:15:30.463 -> *wm:AP IP address: 192.168.4.1 21:15:30.463 -> *wm:Starting Web Portal 21:15:42.631 -> [ 18008][E][WebServer.cpp:649] _handleRequest(): request handler not found 21:15:42.631 -> [ 18027][E][WebServer.cpp:649] _handleRequest(): request handler not found 21:15:43.490 -> [ 18862][E][WebServer.cpp:649] _handleRequest(): request handler not found 21:15:43.490 -> [ 18888][E][WebServer.cpp:649] _handleRequest(): request handler not found 21:15:43.523 -> [ 18900][E][WebServer.cpp:649] _handleRequest(): request handler not found 21:15:43.589 -> [ 18972][E][WebServer.cpp:649] _handleRequest(): request handler not found 21:15:43.589 -> [ 18988][E][WebServer.cpp:649] _handleRequest(): request handler not found 21:15:46.235 -> *wm:7 networks found 21:15:46.301 -> [ 21674][E][WebServer.cpp:649] _handleRequest(): request handler not found 21:15:46.301 -> [ 21691][E][WebServer.cpp:649] _handleRequest(): request handler not found 21:15:46.334 -> [ 21721][E][WebServer.cpp:649] _handleRequest(): request handler not found 21:15:46.334 -> [ 21731][E][WebServer.cpp:649] _handleRequest(): request handler not found 21:15:48.813 -> [ 24202][E][WebServer.cpp:649] _handleRequest(): request handler not found 21:15:48.846 -> [ 24218][E][WebServer.cpp:649] _handleRequest(): request handler not found 21:16:02.799 -> [ 38179][E][WebServer.cpp:649] _handleRequest(): request handler not found 21:16:02.799 -> [ 38195][E][WebServer.cpp:649] _handleRequest(): request handler not found 21:16:19.826 -> *wm:Connecting to NEW AP: 12-345 21:16:19.859 -> *wm:connectTimeout not set, ESP waitForConnectResult... 21:16:22.670 -> *wm:Connect to new AP [SUCCESS] 21:16:22.670 -> *wm:Got IP Address: 21:16:22.670 -> *wm:10.0.2.14 21:16:22.670 -> [ 58056][E][WebServer.cpp:649] _handleRequest(): request handler not found 21:16:23.695 -> *wm:config portal exiting 21:16:23.695 -> N: Total size: 512 21:16:23.761 -> [ 59128][E][Preferences.cpp:50] begin(): nvs_open failed: NOT_FOUND 21:16:23.761 -> N: No WebUI config to load 21:16:23.761 -> N: OpenMQTTGateway URL: http://10.0.2.14/ 21:16:23.761 -> N: ZwebUI setup done 21:16:25.249 -> [ 60634][E][Preferences.cpp:50] begin(): nvs_open failed: NOT_FOUND 21:16:25.249 -> N: BT config not found 21:16:25.249 -> N: BLE scans interval: 55555 21:16:25.249 -> N: BLE connects interval: 3600000 21:16:25.249 -> N: BLE scan duration: 10000 21:16:25.282 -> N: Publishing only BLE sensors: false 21:16:25.282 -> N: Publishing random MAC devices: false 21:16:25.282 -> N: Adaptive BLE scan: true 21:16:25.282 -> N: Active BLE scan interval: 55555 21:16:25.282 -> N: minrssi: -100 21:16:25.282 -> N: Presence Away Timer: 120000 21:16:25.282 -> N: Moving Timer: 60000 21:16:25.282 -> N: Force passive scan: false 21:16:25.282 -> N: Enabled BLE: true 21:16:25.480 -> N: ZgatewayBT multicore ESP32 setup done 21:16:25.480 -> N: Offline disabled 21:16:25.513 -> N: OpenMQTTGateway modules: ["WebUI","BT"] 21:16:25.513 -> N: ************** Setup OpenMQTTGateway end ************** 21:16:25.513 -> N: Reconfiguring MQTT broker... 21:16:25.513 -> [ 60892][E][ArduinoOTA.cpp:185] _onRx(): bad md5 length 21:16:25.513 -> N: Update check, free heap: 87952N: Using config cert 21:16:26.340 -> N: Update check done, free heap: 38648N: SYS json: {"uptime":61,"version":"v1.8.1","mqtt":true,"serial":false,"disc":true,"ohdisc":false,"env":"esp32dev-ble-broker","freemem":86916,"msgprc":0,"msgblck":0,"msgrcv":1,"maxq":0,"cnt_index":0,"minmem":27148,"tempc":45,"freestck":3988,"powermode":-1,"eth":false,"rssi":-40,"SSID":"12-345","BSSID":"E0:63:DA:83:01:D6","ip":"10.0.2.14","mac":"80:7D:3A:B7:17:4A","modules":"'WebUI', 'BT'","origin":"/SYStoMQTT"} 21:16:26.406 -> W: MQTT not connected, aborting the publication 21:16:26.406 -> [ 61778][E][ArduinoOTA.cpp:185] _onRx(): bad md5 length 21:16:26.406 -> W: MQTT not connected, aborting the publication 21:16:26.406 -> W: MQTT not connected, aborting the publication 21:16:26.406 -> W: MQTT not connected, aborting the publication 21:16:26.406 -> N: Scan begin 21:16:26.968 -> N: BT Device detected: 66:97:AF:5D:2A:42 21:16:27.067 -> W: MQTT not connected, aborting the publication 21:16:27.695 -> N: BT Device detected: 38:E9:88:16:F7:42 21:16:27.795 -> W: MQTT not connected, aborting the publication 21:16:29.547 -> [ 64942][E][ArduinoOTA.cpp:185] _onRx(): bad md5 length 21:16:29.580 -> [ 64947][E][ArduinoOTA.cpp:185] _onRx(): bad md5 length 21:16:36.424 -> N: Found 2 devices, scan number 1 end 21:16:36.721 -> [ 72111][E][ArduinoOTA.cpp:185] _onRx(): bad md5 length 21:16:36.721 -> [ 72115][E][ArduinoOTA.cpp:185] _onRx(): bad md5 length 21:16:51.268 -> [ 86652][E][ArduinoOTA.cpp:185] _onRx(): bad md5 length