rednet.broadcast
rednet.broadcast Function | |
---|---|
Syntax rednet.broadcast() | |
Returns | nil |
API | rednet |
Source | CC:Tweaked (source) |
Broadcasts a string message over the predefined rednet.CHANNEL_BROADCAST channel (default 65535), assuming rednet has been opened. The message will be received by every device listening to rednet.
Note: This function call requires a Modem peripheral to be attached to the computer. See Networking for more information.
Note: Rednet is not secure against interception or spoofing. See Network security#Rednet for more information.
|
|||
Broadcasts 'Ping' over the defined rednet.CHANNEL_BROADCAST channel. | |||
Code | rednet.broadcast('Ping')
|
||
Output | Users running rednet.receive will now have received 'Ping' in their programs. |