Contains logic for the WriteEeprom (version 2) Node command
static ByteStream buildCommand( |
| ) |
Builds the WriteEeprom_v2 command packet
nodeAddress | the address of the Node to build the command for |
eepromAddress uint16 | the Eeprom address to write to |
valueToWrite uint16 | the value to write to the Eeprom |
A ByteStream containing the command packet
Handles the response to the WriteEeprom_v2 Node command
Response( |
| ) |
Creates a WriteEeprom_v2 Response object
nodeAddress | the node address to check for. |
eepromAddress uint16 | the eeprom address that was written to. |
valueWritten uint16 | the value that was written to eeprom. |
collector std::weak_ptr<ResponseCollector> | The ResponseCollector used to register and unregister the response. |
The eeprom address to look for in the WriteEeprom_v2 response.
The eeprom value to look for in the WriteEeprom_v2 response.
The WirelessPacket::ResponseErrorCode from 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
Gets the WirelessPacket::ResponseErrorCode from the response packet.
The error code from the response.
bool matchSuccessResponse( |
| ) |
Checks if the WirelessPacket passed in matches the success response.
packet const WirelessPacket& | The WirelessPacket to match. |
true if the packet matches the success response, false otherwise.
bool matchFailResponse( |
| ) |
Checks if the WirelessPacket passed in matches the failure response.
packet const WirelessPacket& | The WirelessPacket to match. |
true if the packet matches the fail response, false otherwise.