keepalive=60
watch the repeatition of disconnects ( exactly 90 sec apart, resulting a last_will msg accordingly:
Code: Select all
Connected to MQTT server
[2018-09-13 20:47:15.03] Fail Status #1: Wifi is: True
Connected to MQTT server
disconnect #1: duration: 0.7
[2018-09-13 20:48:45.03] Fail Status #1: Wifi is: True
Connected to MQTT server
disconnect #2: duration: 0.8
[2018-09-13 20:50:15.03] Fail Status #1: Wifi is: True
Connected to MQTT server
disconnect #3: duration: 0.8
[2018-09-13 20:51:45.03] Fail Status #1: Wifi is: True
Connected to MQTT server
disconnect #4: duration: 0.7
[2018-09-13 20:53:15.03] Fail Status #1: Wifi is: True
Connected to MQTT server
disconnect #5: duration: 0.8
[2018-09-13 20:54:45.03] Fail Status #1: Wifi is: True
Connected to MQTT server
disconnect #6: duration: 0.8