Script to convert Binary to JSON

Hi

I have connected to my device and i can see the JSON data no issues.

However my sensor transmits 3 axis acceleration data in binary (64 / 256). MQTTX cannot read anything except base64 hex plaintext or json. i gett gibberish boxes from the payload my device is sending.

Any pointers on how to parse this?

Thanks

Hello, sorry for the late reply. After reviewing your question, I believe you can use the script feature of MQTTX to process your data.
However, I’m not quite sure about the format of your original data. If you are familiar with JavaScript, you can try using ArrayBuffer or dataView to convert the data in the script.
Alternatively, if you can provide more specific information about your data, I’d be happy to try and assist with the conversion.