From bcab9de17dd73242e643d68b26c4c732f3699ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Fri, 14 Mar 2014 01:33:27 -0700 Subject: [PATCH] Updated Component Modem (markdown) --- Component-Modem.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Component-Modem.md b/Component-Modem.md index 46f5ee4..7c3e953 100644 --- a/Component-Modem.md +++ b/Component-Modem.md @@ -5,7 +5,7 @@ Callbacks: - `isWireless(): boolean` Returns whether this modem is capable of sending wireless messages. - `maxPacketSize(): number` - Returns the maximum packet size for sending messages via network cards. Defaults to 8192, doesn't apply to HTTP traffic. You can change this in the OpenComputer configuration file. + Returns the maximum packet size for sending messages via network cards. Defaults to 8192. You can change this in the OpenComputer configuration file. - `isOpen(port: number): boolean` Returns whether the specified "port" is currently being listened on. Messages only trigger signals when they arrive on a port that is open. - `open(port: number): boolean` @@ -32,8 +32,6 @@ This component generates a signal named `modem_message` if a message from anothe - `distance` is the distance to the modem that sent the message. This is only set for wireless messages. For normal messages this is always 0. - All further values are values passed along by the sender (i.e. the `...` in `send` and `broadcast`). -*A note on HTTP requests*: if enabled in the configuration, wireless modems can be used to make HTTP requests. For this, call `send` with a URL instead of a component address. The recommended way of doing this is via the [[HTTP API|API/HTTP]], however. - Example use: ```lua local component = require("component")