Difference between revisions of "Modem.closeAll"
From ComputerCraft Wiki
(Categorised page) |
MKlegoman357 (Talk | contribs) m (Expanded) |
||
| 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]] | [[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. |