Firmware  0.4.1
Loading...
Searching...
No Matches
mw::ota::Service Class Reference

#include <service.hpp>

Collaboration diagram for mw::ota::Service:

Public Member Functions

 Service ()
 
esp_err_t socket (intf::http::Message &msg)
 

Private Member Functions

void taskFunction (void *)
 
void loop ()
 
uint8_t write (std::vector< uint8_t > const &payload)
 
void end ()
 
void close ()
 

Private Attributes

std::queue< intf::http::Message_queue {}
 
esp_partition_t const * _partition {}
 
esp_ota_handle_t _handle {}
 
uint8_t _ack {}
 

Constructor & Destructor Documentation

◆ Service()

mw::ota::Service::Service ( )
Todo
document
Bug
should this broadcast Z21 programming mode?

Member Function Documentation

◆ close()

void mw::ota::Service::close ( )
private
Todo
document

◆ end()

void mw::ota::Service::end ( )
private
Todo
document

◆ loop()

void mw::ota::Service::loop ( )
private
Todo
document

◆ socket()

esp_err_t mw::ota::Service::socket ( intf::http::Message & msg)
Todo
document

◆ taskFunction()

void mw::ota::Service::taskFunction ( void * )
private
Todo
document

◆ write()

uint8_t mw::ota::Service::write ( std::vector< uint8_t > const & payload)
private
Todo
document

Member Data Documentation

◆ _ack

uint8_t mw::ota::Service::_ack {}
private

◆ _handle

esp_ota_handle_t mw::ota::Service::_handle {}
private

◆ _partition

esp_partition_t const* mw::ota::Service::_partition {}
private

◆ _queue

std::queue<intf::http::Message> mw::ota::Service::_queue {}
private

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