MeshNet
1.0.0
|
Static class, that groups static methods to decode network scan request packet. More...
#include <meshPacketDecoders.h>
Static Public Member Functions | |
static bool | IsSameType (const MeshPacket &packet) |
Checks if system packet type match decoder type, but does not check its validity. More... | |
static bool | IsValid (const MeshPacket &packet) |
Checks if packet is valid. More... | |
static bool | IsValid (const MeshPacketHeader &packetHeader, const uint8_t *frameData, uint8_t frameDataSize) |
Checks if packet is valid. Designed for packet header checking in MeshPacketBuilder. More... | |
static MeshVersion | GetNetVersion (const MeshPacket &packet) |
Gets version of used MeshNet. More... | |
static void | SetNetVersion (MeshPacket &packet, MeshVersion version) |
Sets version of used MeshNet. More... | |
static MeshNetScanFlags | GetFlags (const MeshPacket &packet) |
Gets network scan flags. More... | |
static MeshNetScanFlags | GetFlags (const uint8_t *frameData) |
Gets network scan flags. More... | |
static void | SetFlags (MeshPacket &packet, MeshNetScanFlags flags) |
Sets network scan flags. More... | |
static bool | HasResponder (const MeshPacket &packet) |
Checks if frame has specified responder. If responder BSSID is specified, only nodes with that BSSID has to respond. More... | |
static bool | HasResponder (uint8_t frameDataSize) |
Checks if frame has specified responder. If responder BSSID is specified, only nodes with that BSSID has to respond. More... | |
static MeshMAC | GetResponder (const MeshPacket &packet) |
Gets responder BSSID or MAC address. To check if responder is BSSID or MAC, call GetFlags() methods and check flag called ResponderIsMAC. Only nodes with matching BSSID or MAC can respond. More... | |
static MeshMAC | GetResponder (const uint8_t *frameData) |
Gets responder BSSID or MAC address. To check if responder is BSSID or MAC, call GetFlags() methods and check flag called ResponderIsMAC. Only nodes with matching BSSID or MAC can respond. More... | |
static void | SetResponder (MeshPacket &packet, MeshMAC responder) |
Sets responder BSSID or MAC address. To check if responder is BSSID or MAC, call GetFlags() methods and check flag called ResponderIsMAC. Only nodes with matching BSSID or MAC can respond. More... | |
static bool | Construct (MeshPacket &packet, uint8_t sourceAddr, MeshVersion version, MeshNetScanFlags flags) |
Constructs packet of current type. More... | |
static bool | Construct (MeshPacket &packet, uint8_t sourceAddr, MeshVersion version, MeshNetScanFlags flags, MeshMAC responder) |
Constructs packet of current type. More... | |
Static Public Attributes | |
const static SystemPacketType | Type = SPT_NetScan |
Type of system packet, that can be decoded with current decoder. More... | |
Private Member Functions | |
NetScanRequestPD () | |
Static class, that groups static methods to decode network scan request packet.
|
inlineprivate |
|
inlinestatic |
Constructs packet of current type.
sourceAddr | Source node address. | |
[in] | packet | System packet to construct. |
version | Version of used MeshNet. | |
flags | Network scan flags. |
|
inlinestatic |
Constructs packet of current type.
sourceAddr | Source node address. | |
[in] | packet | System packet to construct. |
version | Version of used MeshNet. | |
flags | Network scan flags. | |
responder | BSSID of network which nodes has to respond or MAC address of node which has to respond. |
|
inlinestatic |
Gets network scan flags.
[in] | packet | System packet to decode. |
|
inlinestatic |
Gets network scan flags.
[in] | frameData | Pointer to data contained in first frame (excluding fields reserved for packet header). |
|
inlinestatic |
|
inlinestatic |
Gets responder BSSID or MAC address. To check if responder is BSSID or MAC, call GetFlags() methods and check flag called ResponderIsMAC. Only nodes with matching BSSID or MAC can respond.
[in] | packet | System packet to decode. |
|
inlinestatic |
Gets responder BSSID or MAC address. To check if responder is BSSID or MAC, call GetFlags() methods and check flag called ResponderIsMAC. Only nodes with matching BSSID or MAC can respond.
[in] | frameData | Pointer to data contained in first frame (excluding fields reserved for packet header). |
|
inlinestatic |
Checks if frame has specified responder. If responder BSSID is specified, only nodes with that BSSID has to respond.
|
inlinestatic |
Checks if frame has specified responder. If responder BSSID is specified, only nodes with that BSSID has to respond.
|
inlinestatic |
Checks if system packet type match decoder type, but does not check its validity.
[in] | packet | System packet to decode. |
|
inlinestatic |
Checks if packet is valid.
[in] | packet | System packet to decode. |
|
inlinestatic |
Checks if packet is valid. Designed for packet header checking in MeshPacketBuilder.
[in] | packetHeader | Received packet header. |
[in] | frameData | Pointer to data contained in first frame (excluding fields reserved for packet header). |
[in] | frameDataSize | Size of frame data in bytes. |
|
inlinestatic |
Sets network scan flags.
[in] | packet | System packet to decode. |
flags | Network scan flags. |
|
inlinestatic |
|
inlinestatic |
Sets responder BSSID or MAC address. To check if responder is BSSID or MAC, call GetFlags() methods and check flag called ResponderIsMAC. Only nodes with matching BSSID or MAC can respond.
[in] | packet | System packet to decode. |
responder | BSSID of network which nodes has to respond or MAC address of node which has to respond. |
|
static |
Type of system packet, that can be decoded with current decoder.