Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.find("modem")
- if modem then
- -- Open the modem on channels 0 to 100
- for i = 0, 100 do
- modem.open(i) -- Ensure the modem is open on channel i
- modem.transmit(i, 0, "Test Message: " .. i) -- Send the message with the channel number
- print("Message sent on channel " .. i .. ": Test Message: " .. i)
- end
- else
- print("No modem found!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement