• src/sbbs3/mqtt.c mqtt.h

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Thu Dec 29 14:16:20 2022
    https://gitlab.synchro.net/main/sbbs/-/commit/db640272f3a68f23f310f011
    Modified Files:
    src/sbbs3/mqtt.c mqtt.h
    Log Message:
    Add a public "no value" function

    This can be used to clear a 'retained' topic (of any type).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sat Sep 7 15:31:15 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/cefca3c6f32c298d4a560775
    Modified Files:
    src/sbbs3/mqtt.c mqtt.h
    Log Message:
    Track broker-connected status via Mosquitto connect/disconnect callbacks

    I think this might fix issue #781. I suspect that SBBS (the MQTT client) is being disconnected by the server ("due to protocol error") *after* the
    call to mosquitto_connect_bind() is successful. We don't have any correponding log output for this case, but at least we can track the connection status accurately using the Mosquitto client callbacks and not try to publish when we're not connected.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Thu Mar 6 18:35:41 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/f99713f33408ba7df7cd14f4
    Modified Files:
    src/sbbs3/mqtt.c mqtt.h
    Log Message:
    Don't publish to the initial server topics (e.g. version) until after connect

    Fix for issue #884

    We must wait until the connect_callback() has been called to publish these messages. Using mqtt.server_version as the indicator of an initial startup connection versus a re-connection (due to broker-connection loss), i.e.
    setting to NULL after initial connection.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net