mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-18 16:26:31 +00:00
Cleanup LoRaWan berry decoding
This commit is contained in:
parent
0abe70816b
commit
f90be50d2d
@ -16,8 +16,7 @@ var LwDeco
|
|||||||
def LwDecode(data)
|
def LwDecode(data)
|
||||||
import json
|
import json
|
||||||
|
|
||||||
var LwData = type(data)=='string' ? json.load(data) : data
|
var deviceData = data['LwReceived']
|
||||||
var deviceData = LwData['LwReceived']
|
|
||||||
var deviceName = deviceData.keys()()
|
var deviceName = deviceData.keys()()
|
||||||
var Payload = deviceData[deviceName]['Payload']
|
var Payload = deviceData[deviceName]['Payload']
|
||||||
var FPort = deviceData[deviceName]['FPort']
|
var FPort = deviceData[deviceName]['FPort']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user