Greetings. I’m fairly new to Losant, not really a developer but do have a sensor already MQTT-ing to a workflow, converting JSON sensor strings to objects and displaying values on a dashboard - so not bad for a developer wannabe . But I have one problem, I’ve looked on the forums already and haven’t quite found exactly the answer to my (if this topic has already been discussed/solved, by all means re-direct me to that one )
All of my JSON metadata objects are ‘good’ for handling, But one is in the format of Base64. This would be my payload_raw value. I need it in HEX Base16 1 byte words format for decoding. Before I begin all over the place I would like the community for guidance: do I make a Function, Mutate, Math, etc. The right starting point would be best.
Here’s an example of payload raw message : “payload_raw”: “GAoBPg==”
Need something like : “payload” or “payload_hex”: “180A013E” (0-7 byte payload; in this case 4 byte payload : 18 0A 01 3E)
Again, any guidance, help in the right direction would be appreciated!
Thanks in advance! j