Posted 01 March 2016 - 05:02 PM
hi all. first of all, sorry for my bad english, im francophone. im trying to do like the industrial info panel in ftb bu without it cuz i dont have access to that mod.
for the moment i got a teste code to make it work but it don't
on the sender computer:
and on the receiving computer:
i kow for the moment this can be look ugly on a terminal but when it will work ill arrange it on a monitor,
all i want to do is sendig via wireless modem the status of the nuclear reactor, the energy output and the actual temperature. for the moment it don't work!
thanx to all
for the moment i got a teste code to make it work but it don't
on the sender computer:
rednet.open("left")
nucleair = peripheral.wrap("back")
local a = nucleair.getHeat()
local b = nucleair.isActive()
local c = nucleair.getEUOutput()
c = c * 5
local a2 = tostring(a)
local b2 = tostring(B)/>
local c2 = tostring(c)
local donnees = { b2, c2, a2}
local encode = textutils.serialise(donnees)
rednet.broadcast(encode)
print(a2)
print(b2)
print(c2)
and on the receiving computer:
rednet.open("left")
local num = 1
while true do
event, id, text = os.pullEvent()
term.setCursorPos(1,1)
print(num)
num = num + 1
if event == "rednet_message" then
recup = textutils.unserialise(text)
print("1 = "..recup[1])
print("2 = "..recup[2])
print("3 = "..recup[3])
end
end
i kow for the moment this can be look ugly on a terminal but when it will work ill arrange it on a monitor,
all i want to do is sendig via wireless modem the status of the nuclear reactor, the energy output and the actual temperature. for the moment it don't work!
thanx to all