Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boot loop when MQTT is not configured #1432

Open
DT-one opened this issue Nov 19, 2024 · 1 comment
Open

Boot loop when MQTT is not configured #1432

DT-one opened this issue Nov 19, 2024 · 1 comment

Comments

@DT-one
Copy link

DT-one commented Nov 19, 2024

Describe the bug
The device appears to boot loop when MQTT is not configured. This is evident on a device with an LCD time display that goes to 00:00 or the ntp offset time every 1 to 2 minutes, which is what I will call the 'event'. Logs reveal autoexec.bat running after each event. It appears that MQTT is changing channel prior to most events. Configuring the MQTT settings to connect to a broker resolves the issue.

It would be useful for a device like this to be able to connect to wifi and just display the time, without having MQTT configured. I imagine there are other situations where it would be usefull for a device to run without MQTT.

It appears that http: page become non-responsive during an event.

Firmware:

  • Version: discovered on 1.17.689, also present on 1.17.740
  • Device: S09 Thermometer and Humidity Sensor with IR (and LCD clock)
  • Chip/model: BK7231T

To Reproduce
Steps to reproduce the behaviour:

  1. Flash device
  2. Set IP address and attach to WiFi
  3. Set autoexec.bat with required entries to initialise NTP and TuyaMCU
  4. Reset device
  5. Watch LCD screen, See error

Screenshots/Additional context
Screenshots and logs available in the following elektroda thread, starting at post #18: https://www.elektroda.com/rtvforum/viewtopic.php?p=21307605#21307605

@DT-one
Copy link
Author

DT-one commented Nov 20, 2024

Through help provided on the elektroda thread:
The Tuya MCU may be resetting the Beken chip when 'no connection to cloud' is reported. Setting tuyaMcu_defWiFiState 4 fixes the issue.
But, an improvement may be to report 'connected to could' when MQTT is not configured, as case commonly encountered whilst setting up a device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant