lorawan-server icon indicating copy to clipboard operation
lorawan-server copied to clipboard

Compressed Payload

Open induthings-coder opened this issue 2 years ago • 3 comments

Dear All, we are trying to compress the payload before send and then decompress before publish via MQTT? I will appreciate your support. Thanks

induthings-coder avatar Aug 30 '21 10:08 induthings-coder

Hello, I am not sure that I understood you correctly, but is your question "How to do something with received payload, decompress for example, before publishing it over MQTT?" If so, take a look into this document: Handlers.md

altishchenko avatar Aug 30 '21 11:08 altishchenko

for i.e, device compress 200 bytes with LZ4 algorithm to send lower size paylod. You received a binary compressed on the Handler. How to decompress it before publish?

induthings-coder avatar Aug 30 '21 21:08 induthings-coder

As I said before, read Handlers.md document. You have to write your custom Parse Uplink function if you want to do something with your received data before publishing it to any connector.

altishchenko avatar Sep 01 '21 01:09 altishchenko