• MQTT: hack filename sends bytes rather than a string

    From Nigel Reed@1:103/705 to GitLab issue in main/sbbs on Thu Dec 5 12:40:40 2024
    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}
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Thu Dec 5 13:37:48 2024
    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?
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to GitLab note in main/sbbs on Thu Dec 5 16:14:02 2024
    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.
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to GitLab issue in main/sbbs on Thu Dec 5 16:14:02 2024
    close https://gitlab.synchro.net/main/sbbs/-/issues/835
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Thu Dec 5 16:33:08 2024
    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.
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)