Midnight Sun Firmware
Loading...
Searching...
No Matches
FotaAck

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
 

Detailed Description

@brief Acknowledge class object to parse receive packets

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
bytes  raw_bytes 
)
@brief Initialize the FOTA acknowledge

Member Function Documentation

◆ ack_status()

def ack_status (   self)
@brief GETTER for the ACK status (0 for ACK, 1 for NACK)

◆ err_code()

def err_code (   self)
@brief GETTER for the error code associated with the ACK

◆ err_msg()

def err_msg (   self)
@brief GETTER for the error message contained in the ACK

◆ is_ack()

def is_ack (   self)
@brief Check if this acknowledgment indicates success (ACK == 0)

◆ response_to_type()

def response_to_type (   self)
@brief GETTER for the datagram type this ACK is responding to

The documentation for this class was generated from the following file: