Definition at line 11 of file XBeeFrame.php.
 
Assembles frame after all values are set
- Returns
 - void 
 
Definition at line 33 of file XBeeFrame.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 49 of file XBeeFrame.php.
 
 
Calculates lenth for cmdData. Leave off start byte, length and checksum
- Parameters
 - 
  
    | String | $data | Should be a binary string  | 
  
   
- Returns
 - String $length Should be a binary string 
 
Definition at line 66 of file XBeeFrame.php.
 
 
Transforms hex into a string
- Parameters
 - 
  
  
 
- Returns
 - String $string Should be a binary string 
 
Definition at line 79 of file XBeeFrame.php.
 
 
Packs a string into binary for sending
- Parameters
 - 
  
  
 
- Returns
 - String $data Should be a binary string 
 
Definition at line 107 of file XBeeFrame.php.
 
 
Transforms string into hex
- Parameters
 - 
  
    | String | $str | Should be a binary string  | 
  
   
- Returns
 - String $hex Sould be a hex string 
 
Definition at line 93 of file XBeeFrame.php.
 
 
Unpacks bytes into an array
- Parameters
 - 
  
    | String | $data | Should be a binary string  | 
  
   
- Returns
 - Array $data 
 
Definition at line 117 of file XBeeFrame.php.
 
 
Contructor for abstract class XbeeFrameBase. 
Definition at line 23 of file XBeeFrame.php.
 
 
Gets the 16 bit address
- Returns
 - String $address16 
 
Definition at line 228 of file XBeeFrame.php.
 
 
Gets the 64 bit address
- Parameters
 - 
  
  
 
Definition at line 246 of file XBeeFrame.php.
 
 
Gets the command
- Returns
 - String $cmd 
 
Definition at line 282 of file XBeeFrame.php.
 
 
Gets raw command data, without start byte etc
- Returns
 - String $cmdData 
 
Definition at line 192 of file XBeeFrame.php.
 
 
Gets raw frame data
- Returns
 - String $FrameData 
 
Definition at line 136 of file XBeeFrame.php.
 
 
Gets frame ID according to XBee API
- Returns
 - String $frameId 
 
Definition at line 155 of file XBeeFrame.php.
 
 
Gets the options of the frame
- Returns
 - String $options 
 
Definition at line 264 of file XBeeFrame.php.
 
 
Gets Start Byte according to XBee API, default is 7E
- Returns
 - String $startByte 
 
Definition at line 210 of file XBeeFrame.php.
 
 
Gets value of value
- Returns
 - String $val 
 
Definition at line 300 of file XBeeFrame.php.
 
 
      
        
          | setAddress16  | 
          ( | 
            | 
          $address16 | ) | 
           | 
        
      
 
Sets the 16 bit address
- Parameters
 - 
  
  
 
Definition at line 219 of file XBeeFrame.php.
 
 
      
        
          | setAddress64  | 
          ( | 
            | 
          $address64 | ) | 
           | 
        
      
 
Sets the 64 bit address
- Parameters
 - 
  
  
 
Definition at line 237 of file XBeeFrame.php.
 
 
Sets raw command data, without start byte etc
- Parameters
 - 
  
  
 
- Returns
 - void 
 
Definition at line 183 of file XBeeFrame.php.
 
 
Sets raw frame, including start byte etc
- Parameters
 - 
  
  
 
- Returns
 - void 
 
Definition at line 127 of file XBeeFrame.php.
 
 
Sets FrameId according to XBee API
- Parameters
 - 
  
  
 
- Returns
 - void 
 
Definition at line 146 of file XBeeFrame.php.
 
 
Sets the options of the frame
- Parameters
 - 
  
  
 
Definition at line 255 of file XBeeFrame.php.
 
 
      
        
          | setStartByte  | 
          ( | 
            | 
          $startByte | ) | 
           | 
        
      
 
Sets Start Byte according to XBee API, defaults to 7E
- Parameters
 - 
  
  
 
Definition at line 201 of file XBeeFrame.php.
 
 
Sets the value of a packet
- Parameters
 - 
  
  
 
Definition at line 291 of file XBeeFrame.php.
 
 
      
        
          | const DEFAULT_FRAME_ID = 0x01 | 
        
      
 
 
      
        
          | const DEFAULT_START_BYTE = 0x7e | 
        
      
 
 
      
        
          | const LOCAL_API_ID = 0x08 | 
        
      
 
 
      
        
          | const QUEUED_API_ID = 0x09 | 
        
      
 
 
      
        
          | const REMOTE_API_ID = 0x17 | 
        
      
 
 
      
        
          | const TX_EXPLICIT_API_ID = 0x11 | 
        
      
 
 
The documentation for this class was generated from the following file:
- /home/holzheu/git/BayEOS-PHP/bayeos-xbee-router-php/XBeeFrame.php