Difference between revisions of "Modem.closeAll"
From ComputerCraft Wiki
Iownall555 (Talk | contribs) (Created page with "{{Function |name=modem.closeAll |api=Modem |addon=ComputerCraft |desc=Closes all channels on the modem. |examples= {{Example |desc=Closes all channels on the modem. |code=mod...") |
MKlegoman357 (Talk | contribs) m (Expanded) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{Function | {{Function | ||
| − | |name=modem.closeAll | + | |name=''modem''.closeAll |
| + | |returns={{type|nil}} | ||
|api=Modem | |api=Modem | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
| Line 7: | Line 8: | ||
{{Example | {{Example | ||
|desc=Closes all channels on the modem. | |desc=Closes all channels on the modem. | ||
| − | |code=modem.closeAll() | + | |code= local modem = [[peripheral.wrap]]("top") |
| + | |||
| + | modem.closeAll() | ||
| + | print("All channels are now closed and computer is no longer listening for any messages.") | ||
| + | |output=All channels are now closed and computer is no longer listening for any messages. | ||
}} | }} | ||
}} | }} | ||
| + | |||
| + | [[Category:API_Functions]] | ||
Latest revision as of 15:48, 9 April 2014
| Closes all channels on the modem. | |
| Syntax | modem.closeAll() |
| Returns | nil |
| Part of | ComputerCraft |
| API | Modem |
Examples
| Closes all channels on the modem. | |
| Code |
local modem = peripheral.wrap("top") modem.closeAll() print("All channels are now closed and computer is no longer listening for any messages.") |
| Output | All channels are now closed and computer is no longer listening for any messages. |