Difference between revisions of "Modem.transmit"
From ComputerCraft Wiki
MKlegoman357 (Talk | contribs) m (Expanded) |
Apemanzilla (Talk | contribs) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|name=''modem''.transmit | |name=''modem''.transmit | ||
− | |args={{type|number}} channel, {{type|number}} replyChannel, | + | |args={{type|number}} channel, {{type|number}} replyChannel, message |
|returns={{type|nil}} | |returns={{type|nil}} | ||
|api=Modem | |api=Modem | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Sends a message and a reply channel over the specified channel. | + | |desc=Sends a message and a reply channel over the specified channel. The message may be any type of data excluding {{type|function}}s and {{type|thread}}s, which will be received as {{type|nil}}. |
|examples= | |examples= | ||
{{Example | {{Example |
Revision as of 17:59, 8 April 2015
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 message and a reply channel over the specified channel. | |
Code |
local modem = peripheral.wrap("top") modem.transmit(1, 2, "Hello world!") |