-
Notifications
You must be signed in to change notification settings - Fork 193
Description
Hi,
I have two PC working together in a wired modem connection. We will call them PC C and PC S for ease of understanding. The PC C is sending message to the PC S. PC S use os.pullEvent to get information from the PC C and others communications (need rednet event and timer event for another usage). Each time the PC C send a message to the PC S it raises a timer event in the PC S. As long as this send is not done, no timer event is raised.
Here is a simple example of the problem found.
Code of PC C :
rednet.open("left")
i = 0
while true do
rednet.broadcast("test")
print("Message sent")
print(tostring(i))
i = i+1
os.sleep(0.1)
end
Code of PC S :
rednet.open("right")
while true do
event = {os.pullEvent()}
if event[1] == "timer" then
print("Event timer with id "..event[2])
end
end
The log on PC C :
Message sent
1
Message sent
2
...
The log on PC S :
Event timer with id 15
Event timer with id 16
Here is a photo of my setup :

Event timer with id 17
...