Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Web interface freezes while reconnecting to MQTT #10

Closed
xyzroe opened this issue Jan 26, 2022 · 1 comment
Closed

Web interface freezes while reconnecting to MQTT #10

xyzroe opened this issue Jan 26, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@xyzroe
Copy link
Owner

xyzroe commented Jan 26, 2022

When MQTT server is unavailable the web interface of ESP32 freezes in every MQTT connection retry.

Original post

@xyzroe xyzroe added the bug Something isn't working label Jan 26, 2022
@xyzroe
Copy link
Owner Author

xyzroe commented Jan 26, 2022

The page freezes for literally a second, with an interval for sending data to the MQTT server - 60 seconds by default.
This does not affect the operation of the socket connection in any way.
At the moment, I think this is the best solution.

xyzroe added a commit that referenced this issue Jan 30, 2022
- Add support for DS18B20 sensor. Works only on TTGO using GPIO 33. Shows in web browser
    and sends via MQTT with AutoDiscovery. Works only when the sensor is connected.

- Number of active socket clients reduced to 5 to avoid hangs. Maybe #10

- Number of active socket clients now sends via MQTT with auto-discovery. Using MQTT Refresh Interval. #9

- Automatically reconnect to a Wi-Fi hotspot after being disconnected, but you still need
    the hotspot to be available during the gateway reboot, otherwise it will start its own hotspot. #8

- Add a checkbox to disable emergency mode in Wi-Fi settings. #11

0.6.2

- Set MQTT reconnect interval same as MQTT update interval to avoid web server freezing,
    while broker is unavailable.

- Added web authentication. Issue #4
    Set to OFF by default, enable on general settings page.

- Blocking saving an empty hostname, login and password to the web interface.
    Replaced with standard values ( ZigStarGM / admin / admin )
xyzroe added a commit that referenced this issue Jan 31, 2022
- Fix version number

- Fix web interface rendering error

0.6.3

- Add support for DS18B20 sensor. Works only on TTGO using GPIO 33. Shows in web browser
    and sends via MQTT with AutoDiscovery. Works only when the sensor is connected.

- Number of active socket clients reduced to 5 to avoid hangs. Maybe #10

- Number of active socket clients now sends via MQTT with auto-discovery. Using MQTT Refresh Interval. #9

- Automatically reconnect to a Wi-Fi hotspot after being disconnected, but you still need
    the hotspot to be available during the gateway reboot, otherwise it will start its own hotspot. #8

- Add a checkbox to disable emergency mode in Wi-Fi settings. #11
@xyzroe xyzroe closed this as completed May 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant