
Public Member Functions | |
| def | __init__ |
Static Public Attributes | |
| dictionary | api_commands |
| dictionary | api_responses |
Private Member Functions | |
| def | _parse_samples_header |
Provides an implementation of the XBee API for XBee ZB (ZigBee) modules with recent firmware. Commands may be sent to a device by instantiating this class with a serial port object (see PySerial) and then calling the send method with the proper information specified by the API. Data may be read from a device synchronously by calling wait_read_frame. For asynchronous reads, see the defintion of XBeeBase.
| def xbee.zigbee.ZigBee.__init__ | ( | self, | |
| args, | |||
| kwargs | |||
| ) |
| def xbee.zigbee.ZigBee._parse_samples_header | ( | self, | |
| io_bytes | |||
| ) | [private] |
_parse_samples_header: binary data in XBee ZB IO data format ->
(int, [int ...], [int ...], int, int)
_parse_samples_header will read the first three bytes of the
binary data given and will return the number of samples which
follow, a list of enabled digital inputs, a list of enabled
analog inputs, the dio_mask, and the size of the header in bytes
_parse_samples_header is overloaded here to support the additional
IO lines offered by the XBee ZB
Reimplemented from xbee.base.XBeeBase.
dictionary xbee::zigbee.ZigBee::api_commands [static] |
dictionary xbee::zigbee.ZigBee::api_responses [static] |