Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if deviceRFcapL[1] ~= nil then
- for _,address in ipairs(deviceRFcapL) do
- devices[#devices+1]["uuid"] = component.proxy(address)
- devices[#devices]["name"] = "LV Capacitor"
- devices[#devices]["maxE"] = devices[#devices]["uuid"].getMaxEnergyStored()
- devices[#devices]["curE"] = devices[#devices]["uuid"].getEnergyStored()
- devices[#devices]["change"] = (devices[#devices]["uuid"].getEnergyStored() - devices[#devices]["curE"])
- --table.insert(devices, component.proxy(address))
- --table.insert(devices, "LV Capacitor")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment