- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
PyroRider
-
Content Count
2 -
Joined
-
Last visited
Posts posted by PyroRider
-
-
First my code on the receiving side:
local component = require("component") local event = require("event") local m = component.modem m.open(1) print(m.isOpen(1)) while true do local _, _, from, port, _, message = event.pull("modem_message") os.sleep(1) if message ~= "" then print("message") end end
My problem is, I'm sending one broadcast ("Test") and a second later I'm sending a direct message ("Test2").
The receiving server then prints out the broadcast nearly 8 times before the direct message gets repeated 6 times. From Google I know that this shouldn't be, but I can't figure out what I've done wrong.
Heeeeeeeellllppppp XD
Network messages repeat multiple times?
in Programming
Posted
the sleep was a try to prevent multiple network reading, didnt worked. The computers were connected only by cables, now everything is fine and working, i also built everything new. I believe i had the switch function in one of the racks activated so that may have caused the repetitions