C
typedef struct { BYTE Channel; BYTE Address[MY_ADDRESS_LENGTH]; WORD_VAL PANID; BYTE RSSIValue; BYTE LQIValue; union { BYTE Val; struct { BYTE Role : 2; BYTE Sleep : 1; BYTE SecurityEn : 1; BYTE RepeatEn : 1; BYTE AllowJoin : 1; BYTE Direct : 1; BYTE altSrcAddr : 1; } bits; } Capability; BYTE PeerInfo[ADDITIONAL_NODE_ID_SIZE]; } ACTIVE_SCAN_RESULT;
Description
Active Scan result
This structure contains information from active scan. Application layer will depend on this information to decide the way to establish connections.
Members
Members |
Description |
BYTE Channel; |
Operating Channel of the PAN |
BYTE Address[MY_ADDRESS_LENGTH]; |
Responding device address |
WORD_VAL PANID; |
PAN Identifier |
BYTE RSSIValue; |
RSSI value for the response |
BYTE LQIValue; |
LQI value for the response |
BYTE Role : 2; |
Role of the responding device in the PAN |
BYTE Sleep : 1; |
Whether the responding device goes to sleep when idle |
BYTE SecurityEn : 1; |
Whether the responding device is capable of securing the data |
BYTE RepeatEn : 1; |
Whether the responding device allow repeat |
BYTE AllowJoin : 1; |
Whether the responding device allows other device to join |
BYTE Direct : 1; |
Whether the responding device in radio range or through a repeater |
BYTE altSrcAddr : 1; |
Whether the Address is alternative network address or permanent address |
BYTE PeerInfo[ADDITIONAL_NODE_ID_SIZE]; |
Additional Node ID information, if defined in application layer |
Symbol Reference > Structs, Records, Enums > ACTIVE_SCAN_RESULT Structure