TTN to Azure Functions - Downlink and Uplink

Hi There,

I wanted to connect our TTN application to Azure and use their server-less Function App technology. I just wrote a little blog post about it…

https://www.mbmltd.co.uk/connecting-ttn-azure-functions/

I can’t say that my code is particularly elegant, but it seems to work. What do you think?

Take care
Jason - MBM Ltd

3 Likes

Nice article. One note:

In our case, we only get “payload_raw”, this is a Base64-encoded JSON object

True when the node sends JSON, but to save bandwidth a node should not send text, let alone JSON.

TTN uses Base64 encoding for the raw payload to allow nodes to transmit binary data, which then does not decode to JSON. Instead, one can decode that into an array of bytes, and process those.