sebokmarton / esphome-influxdb-cloud

Component & example project for sending sensor data to cloud
MIT License
10 stars 4 forks source link

If no Network Connection to InfluxDB it reboots #1

Open schu-r opened 11 months ago

schu-r commented 11 months ago

Thanks for the code. My Device worked many weeks. Now we had a Internet disconnect and i no longer got Data from my Device. I found out, that if you have no Internet or the Server is not reachable it reboots.

I want to send my device as a Christmas Present to someone else. I dont know the Wireless Credentials. But then I install a CaptivePortal i have no Internet connection and the device will die. So I will never have the Chance to enter the Credentials.

Can you set a timeout or something or check the connection in first place?

[W][ota:107]: Last Boot was an unhandled reset, will proceed to safe mode in 1 restarts [C][influxdb:010]: Setting up InfluxDB Writer... E (24814) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time: E (24814) task_wdt: - loopTask (CPU 1) E (24814) task_wdt: Tasks currently running: E (24814) task_wdt: CPU 0: IDLE E (24814) task_wdt: CPU 1: IDLE E (24814) task_wdt: Aborting.

abort() was called at PC 0x4010430c on core 0

Backtrace:0x40084185:0x3ffbeabc |<-CORRUPTED

ELF file SHA256: 0000000000000000

Rebooting...

vanBassum commented 2 months ago

I have the same issue, although the server should be reachable.

[18:10:40][C][influxdb:010]: Setting up InfluxDB Writer...
[18:10:45]E (24094) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
[18:10:45]E (24094) task_wdt:  - loopTask (CPU 1)
[18:10:45]E (24094) task_wdt: Tasks currently running:
[18:10:45]E (24094) task_wdt: CPU 0: IDLE
[18:10:45]E (24094) task_wdt: CPU 1: IDLE
[18:10:45]E (24094) task_wdt: Aborting.
[18:10:45]
[18:10:45]abort() was called at PC 0x400ff674 on core 0
[18:10:45]
[18:10:45]
[18:10:45]Backtrace:0x400838cd:0x3ffbe9dc |<-CORRUPTED
[18:10:45]
[18:10:45]
[18:10:45]
[18:10:45]
[18:10:45]ELF file SHA256: 0000000000000000
[18:10:45]
[18:10:45]Rebooting...