Modem.transmit

From ComputerCraft Wiki
Revision as of 17:59, 8 April 2015 by Apemanzilla (Talk | contribs)

Jump to: navigation, search
Grid Redstone.png  Function modem.transmit
Sends a message and a reply channel over the specified channel. The message may be any type of data excluding functions and threads, which will be received as nil.
Syntax modem.transmit(number channel, number replyChannel, 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!")