From 7c70fbaabd6a337cde8bebb90fb37b89d9fd284e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 27 Nov 2016 20:20:56 +0100 Subject: [PATCH] Base64 decode on ttn network --- python/adeunisrf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/adeunisrf.py b/python/adeunisrf.py index 4987c66..bc97962 100644 --- a/python/adeunisrf.py +++ b/python/adeunisrf.py @@ -93,6 +93,10 @@ def decode_adeunis(pkg): return res def nodered_adeunisrf(provider, data): + # ttn -> base64 encoded + if provider == "ttn": + data = base64.b64decode(data) + res = decode_adeunis(data) if not res: return