fashberg/WThermostatBeca

WebSocket Error! --> WebSocket Connection Closed!

Closed this issue · 1 comments

Hi!
I own a BHT-6000 WiFi Thermostat.
I flashed it yesterday (by soldering wires on ESP8266) with the latest binary (I also gave a try to versions 1.20 and 1.21).

When I tried it yesterday, I did not notice any problem.
But today, this is quite chaotic.
The websocket connection keeps disconnecting and I can't figure out what's going on.
I attach the weblog output (verbose mode) of about 15 minutes of activity.
Wthermostat_weblog.log
Below is a short quote from the file that shows two disconnections (the first is announced by a WebSocket Error!, but not the other one)

[...]
verbose: MCU: processSerial;55 aa 01 07 00 08 03 02 00 04 00 00 00 2a
verbose: MCU: actualTemperature_x03;55 aa 01 07 00 08 03 02 00 04 00 00 00 2a
verbose: MCU: processSerial;55 aa 01 07 00 08 66 02 00 04 00 00 00 00
verbose: MCU: actualFloorTemperature_x66;55 aa 01 07 00 08 66 02 00 04 00 00 00 00
verbose: MCU: processSerial;55 aa 01 07 00 08 03 02 00 04 00 00 00 2a
verbose: MCU: actualTemperature_x03;55 aa 01 07 00 08 03 02 00 04 00 00 00 2a
verbose: MCU: processSerial;55 aa 01 07 00 08 66 02 00 04 00 00 00 00
verbose: MCU: actualFloorTemperature_x66;55 aa 01 07 00 08 66 02 00 04 00 00 00 00
WebSocket Error! 

WebSocket Connection Closed! 

Connecting to ws://192.168.1.194/wslog
Connected
Hello WebSocket Client #6

Now you see all logs for logSeverity verbose (or more important)

trace: sending heartBeatCommand
trace: Heap Info HeartBeat: MaxFree: 20624, Uptime: 140
trace: commandCharsToSerial: 55 aa 00 00 00 00, ChckSum 0xff
verbose: MCU: processSerial;55 aa 01 00 00 01 01
WebSocket Connection Closed! 

Connecting to ws://192.168.1.194/wslog
Connected
Hello WebSocket Client #7

Now you see all logs for logSeverity verbose (or more important)

verbose: MCU: processSerial;55 aa 01 07 00 08 03 02 00 04 00 00 00 2a
verbose: MCU: actualTemperature_x03;55 aa 01 07 00 08 03 02 00 04 00 00 00 2a
verbose: MCU: processSerial;55 aa 01 07 00 08 66 02 00 04 00 00 00 00
verbose: MCU: actualFloorTemperature_x66;55 aa 01 07 00 08 66 02 00 04 00 00 00 00
verbose: MCU: processSerial;55 aa 01 07 00 08 03 02 00 04 00 00 00 2a
verbose: MCU: actualTemperature_x03;55 aa 01 07 00 08 03 02 00 04 00 00 00 2a
[...]

I tried to (de)activate MQTT support -> no difference.
I tried the last 3 binary versions -> no difference.

Any idea?
Thanks.

Message to comment on stale issues. If none provided, will not mark issues stale