Skip to content

Problem using rednet #627

@matt1999rd

Description

@matt1999rd

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 :
Image

Event timer with id 17
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions