Contains logic for the Auto Balance Node command (Version 2).
static ByteStream buildCommand( |
| ) |
Builds the AutoBalance_v2 command packet.
nodeAddress | The address of the Node to build the command for. |
channelNumber uint8 | The channel number to balance (ch1 = 1, ch8 = 8). |
targetPercent float | The target percentage to balance to (0 - 100). |
A ByteStream containing the command packet.
Handles the response to the LongPing Node command
Response( |
| ) |
Creates a LongPing Response object
nodeAddress | the node address to check for in the response. |
channelNumber uint8 | The channel number to check for in the response. |
targetPercent float | The target percentage (0-100) to check for in the response. |
collector std::weak_ptr<ResponseCollector> | The ResponseCollector used to register and unregister the response. |
The channel number to look for in the response.
The target percentage to look for in the response.
The AutoBalanceResult containing info about the autobalance 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