Public Member Functions | |
def | __init__ (self, data='', escaped=False) |
def | checksum (self) |
def | fill (self, byte) |
def | len_bytes (self) |
def | output (self) |
def | parse (self) |
def | remaining_bytes (self) |
def | verify (self, chksum) |
Static Public Member Functions | |
def | escape (data) |
Public Attributes | |
data | |
escaped | |
raw_data | |
Static Public Attributes | |
string | ESCAPE_BYTE = '\x7D' |
tuple | ESCAPE_BYTES = (START_BYTE, ESCAPE_BYTE, XON_BYTE, XOFF_BYTE) |
string | START_BYTE = '\x7E' |
string | XOFF_BYTE = '\x13' |
string | XON_BYTE = '\x11' |
Private Attributes | |
_unescape_next_byte | |
Represents a frame of data to be sent to or which was received from an XBee device
def xbee.frame.APIFrame.__init__ | ( | self, | |
data = '' , |
|||
escaped = False |
|||
) |
def xbee.frame.APIFrame.checksum | ( | self | ) |
|
static |
def xbee.frame.APIFrame.fill | ( | self, | |
byte | |||
) |
def xbee.frame.APIFrame.len_bytes | ( | self | ) |
def xbee.frame.APIFrame.output | ( | self | ) |
def xbee.frame.APIFrame.parse | ( | self | ) |
def xbee.frame.APIFrame.verify | ( | self, | |
chksum | |||
) |
|
static |