Base64 decode on ttn network

This commit is contained in:
Nico Schottelius 2016-11-27 20:20:56 +01:00
parent d12d5ab0cd
commit 7c70fbaabd
1 changed files with 4 additions and 0 deletions

View File

@ -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