hkiam / HCPBridge

emulates Hoermann HAP 1 HCP (HCP2) on ESP8622, ESP32 and Arduino.
90 stars 37 forks source link

reset reason #15

Closed espuno closed 1 year ago

espuno commented 1 year ago

I have the circuit with esp32 in use and it works well. I have from time to time a reset = 1. What could be the reason?

/sysinfo

{"freemem":224004,"hostname":"esp32-xxxx","ip":"192.168.xxx.xxx","ssid":"xxx","wifistatus":3,"resetreason":1}

MCLW commented 1 year ago

Hi, I have the same behavior from time to time. Maybe the esp needs too much current for a wifi reconnect and the hörmann promatic can not handle this current.

Try to reduce the wifi power. WiFi.setTxPower(WIFI_POWER_18_5dBm)

Not tested from my side.

espuno commented 1 year ago

thank you! I am trying it out

espuno commented 1 year ago

i set tx power to minus_1dBm. This seems to work. My wifi connection is strong enough.

WiFi.setTxPower(WIFI_POWER_MINUS_1dBm); // Sets WiFi RF power output to lowest level, lowest RF power usage