28.11.2023, 07:04
Use this:
Code:
data = require('json').pdecode(data)
log(data['switch:0'].voltage)
log(data['switch:1'].current)
log(data['switch:2'].apower)