Modem.transmit

From ComputerCraft Wiki
Revision as of 15:56, 9 April 2014 by MKlegoman357 (Talk | contribs) (Expanded)

Jump to: navigation, search
Grid Redstone.png  Function modem.transmit
Sends a message and a reply channel over the specified channel.
Syntax modem.transmit(number channel, number replyChannel, string message)
Returns nil
Part of ComputerCraft
API Modem

Examples

Grid paper.png  Example
Sends a message and a reply channel over the specified channel.
Code
local modem = peripheral.wrap("top")

modem.transmit(1, 2, "Hello world!")