Definition at line 19 of file bayeosSerial.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 183 of file bayeosSerial.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 37 of file bayeosSerial.php.
 
 
      
        
          | getFrame  | 
          ( | 
            | 
          $timeout = 120 | ) | 
           | 
        
      
 
 
      
        
          | open  | 
          ( | 
            | 
          $waitForOpened = 0.1 | ) | 
           | 
        
      
 
Opens this BaySerial 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 53 of file bayeosSerial.php.
 
 
      
        
          | send  | 
          ( | 
            | 
          $frame,  | 
        
        
           | 
           | 
            | 
          $api = API_DATA,  | 
        
        
           | 
           | 
            | 
          $timeout = 120  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Sends an BaySerial frame. $waitForReply is how long to wait on recieving
- Parameters
 - 
  
  
 
- Returns
 - void 
 
Definition at line 73 of file bayeosSerial.php.
 
 
The documentation for this class was generated from the following file: