Component/access point: Difference between revisions
Jump to navigation
Jump to search
imported>OCDoc Import Imported from legacy OpenComputers documentation at ocdoc.cil.li |
m Change to new provider, the relay |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
= Component: | = Component: Relay = | ||
This component is provided by the [[Block/ | This component is provided by the [[Block/switch|relay]] to allow computers to change the strength of the signal used to relay wireless messages. | ||
Component name: | Component name: <code>relay</code>. Callbacks: | ||
* | * <code>getStrength():number</code> | ||
<pre>Get the signal strength (range) used when relaying messages. | <pre>Get the signal strength (range) used when relaying messages. | ||
</pre> | </pre> | ||
* | * <code>setStrength(strength:number):number</code> | ||
<pre>Set the signal strength (range) used when relaying messages. | <pre>Set the signal strength (range) used when relaying messages. | ||
</pre> | </pre> | ||
* | * <code>isRepeater():boolean</code> | ||
<pre>Check whether Access Point is acting as a repeater (re-send received wireless messages). | <pre>Check whether Access Point is acting as a repeater (re-send received wireless messages). | ||
</pre> | </pre> | ||
* | * <code>setRepeater(enabled:boolean):boolean</code> | ||
<pre>Sets whether Access Point should act as a repeater (re-send received wireless messages). | <pre>Sets whether Access Point should act as a repeater (re-send received wireless messages). | ||
| Line 24: | Line 24: | ||
{{:Component/contents}} | {{:Component/contents}} | ||
Latest revision as of 03:19, 28 August 2026
Component: Relay
This component is provided by the relay to allow computers to change the strength of the signal used to relay wireless messages.
Component name: relay. Callbacks:
getStrength():number
Get the signal strength (range) used when relaying messages.
setStrength(strength:number):number
Set the signal strength (range) used when relaying messages.
isRepeater():boolean
Check whether Access Point is acting as a repeater (re-send received wireless messages).
setRepeater(enabled:boolean):boolean
Sets whether Access Point should act as a repeater (re-send received wireless messages).
Contents
| Components | |
|---|---|
| Core Components | Access Point - Computer - Drone - Drive - EEPROM - Filesystem - GPU - Microcontroller - Modem - Redstone - Robot - Transposer |
| Others | Component Access - Signals |
| Cross-Mod Integration | Applied Energistics |