By moving mosquitto_will_set() call into mqtt_connect().
I'm still having the issue that the LWT is being published after mosquitto_disconnect(), even though I set the "force" parameter to false in the call to mqtt_loop_stop()
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
From Rob Swindell@VERT to Git commit to main/sbbs/master on Sun Jan 1 20:47:21 2023