Hi, i would like some help with decoding a sensor i got.
Mosquitto broker recieve:
You need to base64 decode the data field (beware if you try to copy it from this posting it has been munged with pretty alternate quotes, you will have to substitute true ascii quotes if using a command which needs it quoted)
Once decoded you will find the contents are:
Which seems self-explanatory, apart from being a horribly inefficient way to encode information. Given LoRaWAN’s low bandwidth in longer range situations (your packet report shows the slowest DR0 was used!), a more efficient binary encoding really should be used.
No, but longer range messages need to have small packets, otherwise they take absurdly long on the air - which is any of impolite, an increase in the risk of suffering interference, or in same places outright illegal. Because LoRaWAN has fairly long, fixed-size headers, at the slower data rates just the header can end up consuming most of a reasonable packet duration, leaving only a few bytes (if any) for application data.
Your sensor took something like 18 bytes, to send only 3-4 bytes worth of information.
Allright, i changed my nodes to the standard format but that one doesnt’ seem to use base64 or hex, i should be getting bytes but i get “AAJlkAkB+xsq”, so i guess that needs to be decoded and then i will get bytes that needs to be translated into the proper message i can read?