• MQTT: hack filename sends bytes rather than a string

    From Nigel Reed@VERT to GitLab issue in main/sbbs on Thursday, December 05, 2024 12:40:40
    open https://gitlab.synchro.net/main/sbbs/-/issues/835

    It appears all the hack/METHOD payloads are send as strings, for example

    ![image](https://gitlab.synchro.net/main/sbbs/uploads/96b0974c418009995a7409261893e6df/image.png){width=261 height=465}

    However, hack/filename is sent as bytes making it difficult to parse. Any chance this can be changed to be a string like the rest?

    ![image](https://gitlab.synchro.net/main/sbbs/uploads/9f97c8b2031b7fddb0b082ae1161fad2/image.png){width=251 height=300}

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Thursday, December 05, 2024 13:37:48
    https://gitlab.synchro.net/main/sbbs/-/issues/835#note_6090

    The `action/hack/+` messages are all published in exactly the same manner, and all as strings.

    Whatever you're using to view these topics is what is deciding that it is binary and not text. Did you try using `mosquitto_sub` instead (as a test)? Looking at the example, all those bytes are valid US-ASCII chars, so shouldn't be considered binary. There should be a corresponding log entry in your `hack.log` file (with the filename), does it look weird/binary?

    Are you able to reproduce this problem yourself?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nigel Reed@VERT to GitLab note in main/sbbs on Thursday, December 05, 2024 16:14:02
    https://gitlab.synchro.net/main/sbbs/-/issues/835#note_6092

    I'm not sure how I'd use mosquitto_sub to push past events. That said, I did figure it out eventually. It seems like auto detect was on and it was considered binary. I've now forced it to be a string and it looks much better. nodered uses some cached messages so I'm able to see how it looks. Thanks.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nigel Reed@VERT to GitLab issue in main/sbbs on Thursday, December 05, 2024 16:14:02
    close https://gitlab.synchro.net/main/sbbs/-/issues/835

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Thursday, December 05, 2024 16:33:08
    https://gitlab.synchro.net/main/sbbs/-/issues/835#note_6093

    You'd use `mosquitto_sub` to *read* the message. Pretty much all the messages are pushed with the "retain" flag, so you can see the last published message on any topic, always. You don't have to be actively subscribed/listening at the time of publish.

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