|
Digi XBee(R) ANSI C Host Library
|
The "envelope" is used to gather all necessary information about a given frame on the network. More...
#include "wpan/aps.h"
Data Fields | |
| struct wpan_dev_t * | dev |
| interface received on/to send to | |
| addr64 | ieee_address |
| remote 64-bit address | |
| uint16_t | network_address |
| remote 16-bit address | |
| uint16_t | profile_id |
| Profile ID. | |
| uint16_t | cluster_id |
| Cluster ID. | |
| uint8_t | source_endpoint |
| endpoint on sender (source) | |
| uint8_t | dest_endpoint |
| endpoint on recipient (dest) | |
| uint16_t | options |
| const void FAR * | payload |
| contents of message | |
| uint16_t | length |
| number of bytes in payload | |
The "envelope" is used to gather all necessary information about a given frame on the network.
Note that all members of the structure are in host byte order.
The low byte of the options field is a copy of the cluster flags for the cluster that received the data. Use WPAN_ENVELOPE_CLUSTER_FLAGS to mask off the byte, and then compare to the various WPAN_CLUST_FLAG_* macros.
On a DigiMesh network, the 16-bit network address is always set to WPAN_NET_ADDR_UNDEFINED (0xFFFE).
1.8.11