Definition at line 26 of file phpXBee.php.
Calculates checksum for cmdData. Leave off start byte, length and checksum
- Parameters
-
String | $data | Should be a binary string |
- Returns
- String $checksum Should be a binary string
Definition at line 160 of file phpXBee.php.
confDefaults |
( |
|
$device = '/dev/ttyUSB0' | ) |
|
Sets up typical Connection 38400 8-N-1
- Parameters
-
String | $device | is the path to the xbee, defaults to /dev/ttyUSB0 |
- Returns
- void
Definition at line 44 of file phpXBee.php.
getFrame |
( |
|
$timeout = 120 | ) |
|
open |
( |
|
$waitForOpened = 0.1 | ) |
|
Opens this XBee connection.
Note that you can send raw serial with sendMessage from phpSerial
- Returns
- void
- Parameters
-
$waitForOpened | int amount to sleep after openeing in seconds. Defaults to 0.1 |
Definition at line 60 of file phpXBee.php.
send |
( |
|
$frame, |
|
|
|
$waitForReply = 0 |
|
) |
| |
Sends an XBee frame. $waitForReply is how long to wait on recieving
- Parameters
-
- Returns
- void
Definition at line 80 of file phpXBee.php.
The documentation for this class was generated from the following file:
- /home/holzheu/git/BayEOS-PHP/bayeos-xbee-router-php/phpXBee.php