modem.close
Closes a channel on a modem. A channel must be open to receive messages from it. A modem can only have 128 channels open at the same time.
| modem.close Function | |
|---|---|
|
Syntax modem.close(
| |
| Returns | nil |
| API | modem |
| Source | CC:Tweaked (source) |
channel must be a number between 0 and 65535.
|
|||
| Close channel 42. | |||
| Code | <nowiki>
local modem = peripheral.find("modem")
modem.close(42)
</nowiki>
|
||
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CC:Tweaked |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.