This is reproducible output when having UTF letter in topic or msg:
WiFi not connected
Checking WiFi integrity.
Got reliable connection with IP 192.168.1.4
Connecting to broker.
Connected to broker.
Wifi is up
publish topic + msg ['test/powersensor/temperature/°$unit', '°C']
Wifi is down
Connection error
WiFi not connected
Checking WiFi integrity.
In source code I could see that the length is derived from msg before sending. May be the issue.
This is reproducible output when having UTF letter in topic or msg: WiFi not connected Checking WiFi integrity. Got reliable connection with IP 192.168.1.4 Connecting to broker. Connected to broker. Wifi is up publish topic + msg ['test/powersensor/temperature/°$unit', '°C'] Wifi is down Connection error WiFi not connected Checking WiFi integrity.
In source code I could see that the length is derived from msg before sending. May be the issue.