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

Public Member Functions

def __init__ (self, datagram_header=None)
 
def datagram_header (self)
 
def packet_list (self)
 
def packet_num (self)
 
def complete_send (self)
 
None bin_to_datagram (self, path, datagram_id, node_id)
 
int calculate_datagram_crc32 (self)
 

Public Attributes

 datagram_header
 

Private Attributes

 _datagram_header
 
 _packet_list
 
 _packet_num
 
 _complete_send
 

Detailed Description

@brief Defined serialized format for the datagrams

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  datagram_header = None 
)
@brief initialize the fota datagram class object

Member Function Documentation

◆ bin_to_datagram()

None bin_to_datagram (   self,
  path,
  datagram_id,
  node_id 
)
@brief given a path, turn the binary into the datagram

◆ calculate_datagram_crc32()

int calculate_datagram_crc32 (   self)
@brief create the crc32 from datagram

◆ complete_send()

def complete_send (   self)
@brief GETTER to check if the datagram has been fully transmitted

◆ datagram_header()

def datagram_header (   self)
@brief GETTER for datagram header 

◆ packet_list()

def packet_list (   self)
@brief GETTER for the list of packets that make up the datagram

◆ packet_num()

def packet_num (   self)
@brief GETTER for the total number of packets in the datagram

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