<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Iownall555</id>
		<title>ComputerCraft Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Iownall555"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/Special:Contributions/Iownall555"/>
		<updated>2026-07-11T08:06:01Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Modem_(API)&amp;diff=5927</id>
		<title>Modem (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Modem_(API)&amp;diff=5927"/>
				<updated>2013-08-07T05:51:29Z</updated>
		
		<summary type="html">&lt;p&gt;Iownall555: Removed notice&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;:''This page is for the modem API. For the blocks, see [[Modem]].''&lt;br /&gt;
&lt;br /&gt;
As of ComputerCraft 1.5, channels have been added - channels are essentially networks which can be opened, closed and listened on by any computer within range, without need of independant computer IDs. To interact with channels, one must wrap or interact directly with the peripheral as opposed to the previous interaction with the Rednet API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table style=&amp;quot;width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td colspan=&amp;quot;2&amp;quot; style=&amp;quot;font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #D3FFC2; line-height:28px;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Grid_disk.png|24px]]&amp;amp;nbsp;&amp;amp;nbsp;&lt;br /&gt;
Modem (API)&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td style=&amp;quot;width: 350px; background: #E0E0E0; padding: .4em; font-weight:bold;&amp;quot;&amp;gt;Method Name&amp;lt;/td&amp;gt;&amp;lt;td style=&amp;quot;background: #E0E0E0; padding: .4em; font-weight:bold;&amp;quot;&amp;gt;Description&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #FFFFFF;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[modem.isOpen]]({{type|int}} channel)&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Checks to see if ''channel'' is open&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #E8E8E8;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[modem.open]]({{type|int}} channel)&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Opens ''channel'' to allow for listening. The channel specified must be larger than 0 and less than 65535&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #FFFFFF;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[modem.close]]({{type|int}} channel)&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Closes an open channel to disallow listening&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #E8E8E8;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[modem.closeAll]]()&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Closes all open channels&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #FFFFFF;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[modem.transmit]]({{type|int}} channel, {{type|int}} replyChannel, {{type|string}} message)&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Transmits a message on the specified channel&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #E8E8E8;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[modem.isWireless]]()&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Returns true if the modem is wireless; false if it is wired&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;1&amp;quot; | Event Name&lt;br /&gt;
! colspan=&amp;quot;1&amp;quot; | Description&lt;br /&gt;
! colspan=&amp;quot;1&amp;quot; | Parameters&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | modem_message&lt;br /&gt;
|Fired when a modem message is received.&lt;br /&gt;
|{{type|string}} modemSide, {{type|int}} senderChannel, {{type|int}} replyChannel, {{type|string}} message, {{type|number}} distance&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Sending Messages==&lt;br /&gt;
Sending messages is simple and does not require that you open any channels. Simply use the transmit function like so:&lt;br /&gt;
 local modem = peripheral.wrap(&amp;quot;right&amp;quot;) --Wraps the modem on the right side.&lt;br /&gt;
 modem.transmit(3, 1, &amp;quot;Hello world!&amp;quot;)  &lt;br /&gt;
 peripheral.call(&amp;quot;right&amp;quot;, &amp;quot;transmit&amp;quot;, 3, 1, &amp;quot;This will also work!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
What did that do? First I wrapped the peripheral in order to interact with it. Second, I used modem.transmit(channel, replyChannel, message) in order to send my message. In case you were wondering, the reply channel is captured by the listening computer and suggests which channel they should reply on.&lt;br /&gt;
&lt;br /&gt;
==Receiving Messages==&lt;br /&gt;
Receiving messages requires that you be familiar with events. As of this moment, there is no API which cuts out events from the process. Here is an example of how to receive messages:&lt;br /&gt;
 local modem = peripheral.wrap(&amp;quot;left&amp;quot;)&lt;br /&gt;
 modem.open(3)--Open channel 3 so that we can listen on it&lt;br /&gt;
 local event, modemSide, senderChannel, &lt;br /&gt;
   replyChannel, message, senderDistance = os.pullEvent(&amp;quot;modem_message&amp;quot;)&lt;br /&gt;
 print(&amp;quot;I just received a message from: &amp;quot;..senderChannel)&lt;br /&gt;
 print(&amp;quot;I should apparently reply on: &amp;quot;..replyChannel)&lt;br /&gt;
 print(&amp;quot;The modem receiving this is located on the &amp;quot;..modemSide..&amp;quot; side&amp;quot;)&lt;br /&gt;
 print(&amp;quot;The message was: &amp;quot;..message)&lt;br /&gt;
 print(&amp;quot;The sender is: &amp;quot;..senderDistance..&amp;quot; blocks away from me.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
So what did I do? Quite simply, I called os.pullEvent() with the string argument &amp;quot;modem_message&amp;quot;, which blocks all other events from being returned. When the &amp;quot;modem_message&amp;quot; event is captured, it returns the arguments: event, modemSide, senderChannel, replyChannel, message, senderDistance. I captured these and then printed them out.&lt;br /&gt;
&lt;br /&gt;
== Modem Limitations ==&lt;br /&gt;
* You can only open 128 channels at any given time.&lt;br /&gt;
* The maximum channel you can open is 65535.&lt;br /&gt;
* You can listen on more than one channel at a time. For example, if the modem has channel 3 and channel 5 open, and somebody sends a message on channel 5, the modem will receive it. If a message is sent on channel 3, the modem will also receive the message.&lt;br /&gt;
* Sending messages does not require you to open any channels prior to sending it.&lt;br /&gt;
* If you aren't receiving a message when you think you should, check to make sure that you have opened the channel first.&lt;br /&gt;
* Modems and channels are not secure - if you are sending a message using the Modem API, messages are still available to any computer listening on the sent channel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Peripheral APIs]]&lt;/div&gt;</summary>
		<author><name>Iownall555</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Modem.isOpen&amp;diff=5926</id>
		<title>Modem.isOpen</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Modem.isOpen&amp;diff=5926"/>
				<updated>2013-08-07T05:46:39Z</updated>
		
		<summary type="html">&lt;p&gt;Iownall555: Adjusted the args data type&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Function&lt;br /&gt;
|name=modem.isOpen&lt;br /&gt;
|args={{type|int}} channel&lt;br /&gt;
|api=Modem&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Checks whether or not a certain channel is open. &lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Checks whether the computer is listening on this channel. &lt;br /&gt;
|code=modem.isOpen(1)&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Iownall555</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Modem.isWireless&amp;diff=5925</id>
		<title>Modem.isWireless</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Modem.isWireless&amp;diff=5925"/>
				<updated>2013-08-07T05:41:40Z</updated>
		
		<summary type="html">&lt;p&gt;Iownall555: Created page with &amp;quot;{{Function |name=modem.isWireless |returns={{type|boolean}} isWireless |api=Modem |addon=ComputerCraft |desc=Returns true if a modem is wireless, false if it's wired. |example...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Function&lt;br /&gt;
|name=modem.isWireless&lt;br /&gt;
|returns={{type|boolean}} isWireless&lt;br /&gt;
|api=Modem&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Returns true if a modem is wireless, false if it's wired.&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Returns true if a modem is wireless, false if it's wired.&lt;br /&gt;
|code=modem.isWireless()&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Iownall555</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Modem.transmit&amp;diff=5924</id>
		<title>Modem.transmit</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Modem.transmit&amp;diff=5924"/>
				<updated>2013-08-07T05:37:57Z</updated>
		
		<summary type="html">&lt;p&gt;Iownall555: Created page with &amp;quot;{{Function |name=modem.transmit |args={{type|int}} channel, {{type|int}} replyChannel, {{type|string}} message |api=Modem |addon=ComputerCraft |desc=Sends a message and a repl...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Function&lt;br /&gt;
|name=modem.transmit&lt;br /&gt;
|args={{type|int}} channel, {{type|int}} replyChannel, {{type|string}} message&lt;br /&gt;
|api=Modem&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Sends a message and a reply channel over the specified channel.&lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Sends a message and a reply channel over the specified channel.&lt;br /&gt;
|code=modem.transmit(1, 2, &amp;quot;Hello world!&amp;quot;)&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Iownall555</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Modem.closeAll&amp;diff=5923</id>
		<title>Modem.closeAll</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Modem.closeAll&amp;diff=5923"/>
				<updated>2013-08-07T05:34:41Z</updated>
		
		<summary type="html">&lt;p&gt;Iownall555: Created page with &amp;quot;{{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...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Function&lt;br /&gt;
|name=modem.closeAll&lt;br /&gt;
|api=Modem&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Closes all channels on the modem. &lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Closes all channels on the modem.&lt;br /&gt;
|code=modem.closeAll()&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Iownall555</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Modem.close&amp;diff=5922</id>
		<title>Modem.close</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Modem.close&amp;diff=5922"/>
				<updated>2013-08-07T05:30:56Z</updated>
		
		<summary type="html">&lt;p&gt;Iownall555: Created page with &amp;quot;{{Function |name=modem.close |args={{type|int}} channel |api=Modem |addon=ComputerCraft |desc=Closes the specified channel.  |examples= {{Example |desc=Closes the specified ch...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Function&lt;br /&gt;
|name=modem.close&lt;br /&gt;
|args={{type|int}} channel&lt;br /&gt;
|api=Modem&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Closes the specified channel. &lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Closes the specified channel.&lt;br /&gt;
|code=modem.close(1)&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Iownall555</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Modem.open&amp;diff=5921</id>
		<title>Modem.open</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Modem.open&amp;diff=5921"/>
				<updated>2013-08-07T05:26:32Z</updated>
		
		<summary type="html">&lt;p&gt;Iownall555: Created page with &amp;quot;{{Function |name=modem.open |args={{type|int}} channel |api=Modem |addon=ComputerCraft |desc=Opens the specified channel to allow listening for messages.  |examples= {{Example...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Function&lt;br /&gt;
|name=modem.open&lt;br /&gt;
|args={{type|int}} channel&lt;br /&gt;
|api=Modem&lt;br /&gt;
|addon=ComputerCraft&lt;br /&gt;
|desc=Opens the specified channel to allow listening for messages. &lt;br /&gt;
|examples=&lt;br /&gt;
{{Example&lt;br /&gt;
|desc=Opens the specified channel to allow listening for messages.&lt;br /&gt;
|code=modem.open(1)&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Iownall555</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Modem_(API)&amp;diff=5920</id>
		<title>Modem (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Modem_(API)&amp;diff=5920"/>
				<updated>2013-08-07T05:17:03Z</updated>
		
		<summary type="html">&lt;p&gt;Iownall555: Adjusted the event to reflect the current parameters and did minor adjustments to method table.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{NeedsWork|Need to add pages for missing functions --[[User:Cranium|Cranium]] 17:13, 10 May 2013 (MSK)}}&lt;br /&gt;
&lt;br /&gt;
:''This page is for the modem API. For the blocks, see [[Modem]].''&lt;br /&gt;
&lt;br /&gt;
As of ComputerCraft 1.5, channels have been added - channels are essentially networks which can be opened, closed and listened on by any computer within range, without need of independant computer IDs. To interact with channels, one must wrap or interact directly with the peripheral as opposed to the previous interaction with the Rednet API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table style=&amp;quot;width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td colspan=&amp;quot;2&amp;quot; style=&amp;quot;font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #D3FFC2; line-height:28px;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Grid_disk.png|24px]]&amp;amp;nbsp;&amp;amp;nbsp;&lt;br /&gt;
Modem (API)&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td style=&amp;quot;width: 350px; background: #E0E0E0; padding: .4em; font-weight:bold;&amp;quot;&amp;gt;Method Name&amp;lt;/td&amp;gt;&amp;lt;td style=&amp;quot;background: #E0E0E0; padding: .4em; font-weight:bold;&amp;quot;&amp;gt;Description&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #FFFFFF;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[modem.isOpen]]({{type|int}} channel)&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Checks to see if ''channel'' is open&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #E8E8E8;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[modem.open]]({{type|int}} channel)&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Opens ''channel'' to allow for listening. The channel specified must be larger than 0 and less than 65535&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #FFFFFF;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[modem.close]]({{type|int}} channel)&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Closes an open channel to disallow listening&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #E8E8E8;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[modem.closeAll]]()&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Closes all open channels&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #FFFFFF;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[modem.transmit]]({{type|int}} channel, {{type|int}} replyChannel, {{type|string}} message)&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Transmits a message on the specified channel&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #E8E8E8;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[modem.isWireless]]()&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Returns true if the modem is wireless; false if it is wired&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; width=&amp;quot;100%&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;1&amp;quot; | Event Name&lt;br /&gt;
! colspan=&amp;quot;1&amp;quot; | Description&lt;br /&gt;
! colspan=&amp;quot;1&amp;quot; | Parameters&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | modem_message&lt;br /&gt;
|Fired when a modem message is received.&lt;br /&gt;
|{{type|string}} modemSide, {{type|int}} senderChannel, {{type|int}} replyChannel, {{type|string}} message, {{type|number}} distance&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Sending Messages==&lt;br /&gt;
Sending messages is simple and does not require that you open any channels. Simply use the transmit function like so:&lt;br /&gt;
 local modem = peripheral.wrap(&amp;quot;right&amp;quot;) --Wraps the modem on the right side.&lt;br /&gt;
 modem.transmit(3, 1, &amp;quot;Hello world!&amp;quot;)  &lt;br /&gt;
 peripheral.call(&amp;quot;right&amp;quot;, &amp;quot;transmit&amp;quot;, 3, 1, &amp;quot;This will also work!&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
What did that do? First I wrapped the peripheral in order to interact with it. Second, I used modem.transmit(channel, replyChannel, message) in order to send my message. In case you were wondering, the reply channel is captured by the listening computer and suggests which channel they should reply on.&lt;br /&gt;
&lt;br /&gt;
==Receiving Messages==&lt;br /&gt;
Receiving messages requires that you be familiar with events. As of this moment, there is no API which cuts out events from the process. Here is an example of how to receive messages:&lt;br /&gt;
 local modem = peripheral.wrap(&amp;quot;left&amp;quot;)&lt;br /&gt;
 modem.open(3)--Open channel 3 so that we can listen on it&lt;br /&gt;
 local event, modemSide, senderChannel, &lt;br /&gt;
   replyChannel, message, senderDistance = os.pullEvent(&amp;quot;modem_message&amp;quot;)&lt;br /&gt;
 print(&amp;quot;I just received a message from: &amp;quot;..senderChannel)&lt;br /&gt;
 print(&amp;quot;I should apparently reply on: &amp;quot;..replyChannel)&lt;br /&gt;
 print(&amp;quot;The modem receiving this is located on the &amp;quot;..modemSide..&amp;quot; side&amp;quot;)&lt;br /&gt;
 print(&amp;quot;The message was: &amp;quot;..message)&lt;br /&gt;
 print(&amp;quot;The sender is: &amp;quot;..senderDistance..&amp;quot; blocks away from me.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
So what did I do? Quite simply, I called os.pullEvent() with the string argument &amp;quot;modem_message&amp;quot;, which blocks all other events from being returned. When the &amp;quot;modem_message&amp;quot; event is captured, it returns the arguments: event, modemSide, senderChannel, replyChannel, message, senderDistance. I captured these and then printed them out.&lt;br /&gt;
&lt;br /&gt;
== Modem Limitations ==&lt;br /&gt;
* You can only open 128 channels at any given time.&lt;br /&gt;
* The maximum channel you can open is 65535.&lt;br /&gt;
* You can listen on more than one channel at a time. For example, if the modem has channel 3 and channel 5 open, and somebody sends a message on channel 5, the modem will receive it. If a message is sent on channel 3, the modem will also receive the message.&lt;br /&gt;
* Sending messages does not require you to open any channels prior to sending it.&lt;br /&gt;
* If you aren't receiving a message when you think you should, check to make sure that you have opened the channel first.&lt;br /&gt;
* Modems and channels are not secure - if you are sending a message using the Modem API, messages are still available to any computer listening on the sent channel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Peripheral APIs]]&lt;/div&gt;</summary>
		<author><name>Iownall555</name></author>	</entry>

	</feed>