![]() |
Midnight Sun Firmware
|
Public Member Functions | |
| def | __init__ (self, bytes raw_bytes) |
| def | ack_status (self) |
| def | response_to_type (self) |
| def | err_code (self) |
| def | err_msg (self) |
| def | is_ack (self) |
Private Attributes | |
| _ack_status | |
| _response_to_type | |
| _err_code | |
| _err_msg | |
@brief Acknowledge class object to parse receive packets
| def __init__ | ( | self, | |
| bytes | raw_bytes | ||
| ) |
@brief Initialize the FOTA acknowledge
| def ack_status | ( | self | ) |
@brief GETTER for the ACK status (0 for ACK, 1 for NACK)
| def err_code | ( | self | ) |
@brief GETTER for the error code associated with the ACK
| def err_msg | ( | self | ) |
@brief GETTER for the error message contained in the ACK
| def is_ack | ( | self | ) |
@brief Check if this acknowledgment indicates success (ACK == 0)
| def response_to_type | ( | self | ) |
@brief GETTER for the datagram type this ACK is responding to