Contains logic for the ReadEeprom (version 2) Node command
static ByteStream buildCommand( |
| ) |
Builds the ReadEeprom command packet
nodeAddress | the address of the Node to build the command for. |
eepromAddress uint16 | the Eeprom address to read from. |
A ByteStream containing the command packet
Handles the response to the ReadEeprom Node command
Response( |
| ) |
Creates a EepromRead Response object
nodeAddress | The node address to check for. |
eepromAddress uint16 | The eeprom address we read from. |
collector std::weak_ptr<ResponseCollector> | The ResponseCollector used to register and unregister the response. |
The eeprom address to look for in the ReadEeprom response.
The result eeprom value from the command.
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 result eeprom value that was read from the Node.
The eeprom value read from the Node.
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.