Contains logic for the ShortPing Node command (version 2).
static ByteStream buildCommand( |
| ) |
Builds the ShortPing_v2 command packet
nodeAddress | the address of the Node to build the command for. |
A ByteStream containing the ShortPing_v2 command packet.
Handles the response to the ShortPing_v2 Node command.
Response( |
| ) |
Creates a ShortPing_v2 Response object.
nodeAddress | the node address to check for. |
collector std::weak_ptr<ResponseCollector> | The ResponseCollector used to register and unregister the response. |
virtual bool match( |
| ) override |
Checks if the WirelessPacket passed in matches the expected response pattern's bytes
packet const WirelessPacket& | The WirelessPacket in which to try to find the pattern |
true if the packet matches a response pattern, false otherwise
bool matchSuccessResponse( |
| ) |
Checks if the packet passed in matches the success response.
packet const WirelessPacket& | The WirelessPacket to try to match. |
true if the success response pattern was found, false otherwise
bool matchFailResponse( |
| ) |
Checks if the packet passed in matches the failure response.
packet const WirelessPacket& | The WirelessPacket to try to match. |
true if the failure response pattern was found, false otherwise