zigbee-znet25-0.1: XBee ZNet 2.5 (ZigBee) wireless modem communications

MaintainerDavid Joyner <david@joynerhome.net>
Safe HaskellSafe-Infered




XBee ZNet 2.5 (ZigBee) frame types


The Frame type

data Frame Source

API frame types. See Section 6 of the XBee ZNet 2.5 Product Manual (ftp://ftp1.digi.com/support/documentation/90000866_C.pdf) for frame type-specific documentation.

AT-style command names

data CommandName Source

AT command names. These are limited to two bytes, e.g. ND for neightbor discovery.

commandName :: String -> CommandNameSource

Construct a CommandName. Beware that this function will error if the name is not exactly two bytes long.

unCommandName :: CommandName -> StringSource

Deconstruct a CommandName.

Node addressing

data Address Source

All XBee ZNet 2.5 modules are identified by a unique (and static) 64-bit address.

address :: ByteString -> AddressSource

Construct an Address. Beware that this function will error if the address is not exactly eight bytes long.

unAddress :: Address -> ByteStringSource

Deconstruct an Address.

data NetworkAddress Source

When XBee ZNet 2.5 modules join the network they are assigned a 16-bit address. Note that unlike Address which is unique and static for a given node, a node's NetworkAddress is dynamic and may change over time.

networkAddress :: ByteString -> NetworkAddressSource

Construct a NetworkAddress. Beware that this function will error if the address is not exactly two bytes long.

unNetworkAddress :: NetworkAddress -> ByteStringSource

Deconstruct a NetworkAddress.

Type aliases