Base64 decode on ttn network
This commit is contained in:
parent
d12d5ab0cd
commit
7c70fbaabd
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue