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