I want turtle A to send message to turtle B and then I want turtle B to respond with another message which turtle A would read.
However, I'm having a big inconveience due to high delay. Here are my two testing scripts:
Turtle A
print("start")
start = os.clock()
rednet.broadcast("test")
rednet.receive()
print("end " .. (os.clock() - start))
It will send message and then enter receive mode. Clocks here are for benchmark.Turtle B
rednet.receive()
sleep(0.1) -- Some small delay to allow turtle A to enter receiving mode
rednet.broadcast("testBack")
Result is quite bad - 1.6 seconds for a message to transfer two-way. Any idea how could I improve it?












