Skip to content

Commit

Permalink
get callback for when mqtt connection is lost
Browse files Browse the repository at this point in the history
  • Loading branch information
salhk committed Mar 4, 2024
1 parent 6c14b04 commit 42bc4c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mqtt/mqtt.tbs
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ sub mqtt_sock_event(newstate as enum pl_sock_state, newstatesimple as enum pl_so
#if MQTT_DEBUG_PRINT=1
mqtt_debug_print("Lost connection. Reconnecting in "+str(MQTT_RECONNECT_TIME)+" seconds...")
#endif
callback_mqtt_connect_lost()
end if
select case newstate
case PL_SST_EST_AOPENED:
Expand Down

0 comments on commit 42bc4c8

Please sign in to comment.