Posted 22 October 2012 - 02:16 PM
I'm currently using computercraft 1.33 in my 1.2.5 test world, and this is the program:
Sender:
Receiver:
Wireshark:
The sender and receiver are used to send and receive bundled cable through wireless, and the wireshark are used to see the message inside the wireless. The problem is, every receiving computer, either it the receiver or the wireshark always receives number 6, either any colored wire that connected to the bundled cable are turned on or not. I don't know if this a bug, or this is my fault at programming, nor I can see this happening in 1.3.2 version, because redpower is not yet updated yet.
Sender:
rednet.open("back")
while true do
i = rs.getBundledInput("left")
y = tostring(i)
rednet.broadcast(y)
print(y)
sleep(0)
end
Receiver:
rednet.open("back")
while true do
y = rednet.receive()
i = tonumber(y)
rs.setBundledOutput("right", y)
print(i)
sleep(0)
end
Wireshark:
rednet.open("back")
while true do
message = rednet.receive()
print(message)
sleep(0)
end
The sender and receiver are used to send and receive bundled cable through wireless, and the wireshark are used to see the message inside the wireless. The problem is, every receiving computer, either it the receiver or the wireshark always receives number 6, either any colored wire that connected to the bundled cable are turned on or not. I don't know if this a bug, or this is my fault at programming, nor I can see this happening in 1.3.2 version, because redpower is not yet updated yet.