I'm trying to setup a cc control for my energy, i've start to play with a computer and an energy cell, connected by modem and networking cable, now the thing i want to do is use the function getEnergyStored, i've tried with the code below but i return the error "parameter slot is missing" at line 31
I've got lot of problems with peripheral and i can't find a good tutorial if you know one can you link it please?
local per = peripheral.getNames()
local cell = {}
function findCell()
local index = 1
for k, v in pairs(per) do
if string.find(v, "energycell") then
cell[index] = v
end
index = index + 1
end
end
findCell()
for i = 1, #cell do
print(cell[i])
end
print()
local met = peripheral.getMethods(cell[1])
for k, v in pairs(met) do
print(v)
end
local list = peripheral.call(cell[1], "getEnergyStored")
Thanks everybody!!












