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

Public Member Functions

def __init__ (self, FotaPacketSender packet_sender, FotaRx serial_receive)
 
bool send_packet (self, FotaPacket packet)
 
def queue_datagram (self, FotaDatagram datagram)
 
bool transmit (self)
 
FotaAck ack_wait (self)
 

Private Attributes

 _packet_sender
 
 _tx_queue
 
 _serial_receive
 

Detailed Description

@brief Fota transmit class to send datagrams over XBee

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
FotaPacketSender  packet_sender,
FotaRx  serial_receive 
)
@brief initialize the transport layer for the fota packet sender

Member Function Documentation

◆ ack_wait()

FotaAck ack_wait (   self)
@brief method to receieve the acknowledgment and parse it into a class object

◆ queue_datagram()

def queue_datagram (   self,
FotaDatagram  datagram 
)
@brief pack a datagram into a queue to send over transmit layer 

◆ send_packet()

bool send_packet (   self,
FotaPacket  packet 
)
@brief send packet through serial 

◆ transmit()

bool transmit (   self)
@brief start tranmission of anything in tx_queue

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