Modem.transmit
From ComputerCraft Wiki
Revision as of 18:01, 8 April 2015 by Apemanzilla (Talk | contribs)
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
Example | |
Sends a string message and a reply channel over the specified channel. | |
Code |
local modem = peripheral.wrap("top") modem.transmit(1, 2, "Hello world!") |
Example | |
Sends a table and reply channel over the specified channel. | |
Code |
local modem = peripheral.wrap("top") modem.transmit(1, 2, {"a", "b", "c"}) |