Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
component:modem [2015/04/05 07:44]
rashy Formatting
component:modem [2018/10/12 23:39]
payonel
Line 1: Line 1:
 Component: Modem Component: Modem
 ================ ================
-This component is provided by [[item:​network_card|network cards]]. Wireless network cards behave much like normal network cards, but additionally send the message as a wireless "​packet"​ when a strength is set.+This component is provided by [[item:​network_card|network cards]]. Wireless network cards behave much like normal network cards, but additionally send the message as a wireless "​packet"​ when a strength is set. The modem'​s address must be used for networking. It can be found through component.modem.address.
  
 Component name: `modem`.  ​ Component name: `modem`.  ​
Line 36: Line 36:
   //Wireless network cards only.//   //Wireless network cards only.//
 - `getWakeMessage():​string`  ​ - `getWakeMessage():​string`  ​
-  Gets the current wake-up message. +  Gets the current wake-up message. When the network card detects the wake message (a string in the first argument of a network packet), on any port and the machine is off, the machine is started. Works for robots, cases, servers, drones, and tablets. [[component:​tunnel|Linked Cards]] provide this same functionality
-- `setWakeMessage(message:​ string):​string` ​  +- `setWakeMessage(message:​ string, [fuzzy: boolean]):​string` ​  
-  Sets the wake-up message to the specified **string**.+  Sets the wake-up message to the specified **string**. The message matching can be fuzzy (default is false). A fuzzy match ignores additional trailing arguments in the network packet.