ESP8266
Public Member Functions | Private Member Functions | Private Attributes | List of all members
UpdaterClass Class Reference

Public Member Functions

 UpdaterClass ()
 
bool begin (size_t size, int command=0)
 
size_t write (uint8_t *data, size_t len)
 
size_t writeStream (Stream &data)
 
bool end (bool evenIfRemaining=false)
 
void printError (Stream &out)
 
bool setMD5 (const char *expected_md5)
 
String md5String (void)
 
void md5 (uint8_t *result)
 
uint8_t getError ()
 
void clearError ()
 
bool hasError ()
 
bool isRunning ()
 
bool isFinished ()
 
size_t size ()
 
size_t progress ()
 
size_t remaining ()
 
template<typename T >
size_t write (T &data)
 

Private Member Functions

void _reset ()
 
bool _writeBuffer ()
 
bool _verifyHeader (uint8_t data)
 
bool _verifyEnd ()
 

Private Attributes

uint8_t _error
 
uint8_t * _buffer
 
size_t _bufferLen
 
size_t _size
 
uint32_t _startAddress
 
uint32_t _currentAddress
 
uint32_t _command
 
String _target_md5
 
MD5Builder _md5
 

Constructor & Destructor Documentation

UpdaterClass::UpdaterClass ( )

Member Function Documentation

void UpdaterClass::_reset ( )
private
bool UpdaterClass::_verifyEnd ( )
private
bool UpdaterClass::_verifyHeader ( uint8_t  data)
private
bool UpdaterClass::_writeBuffer ( )
private
bool UpdaterClass::begin ( size_t  size,
int  command = 0 
)
void UpdaterClass::clearError ( )
bool UpdaterClass::end ( bool  evenIfRemaining = false)
uint8_t UpdaterClass::getError ( )
bool UpdaterClass::hasError ( )
bool UpdaterClass::isFinished ( )
bool UpdaterClass::isRunning ( )
void UpdaterClass::md5 ( uint8_t *  result)
String UpdaterClass::md5String ( void  )
void UpdaterClass::printError ( Stream out)
size_t UpdaterClass::progress ( )
size_t UpdaterClass::remaining ( )
bool UpdaterClass::setMD5 ( const char *  expected_md5)
size_t UpdaterClass::size ( )
size_t UpdaterClass::write ( uint8_t *  data,
size_t  len 
)
template<typename T >
size_t UpdaterClass::write ( T &  data)
size_t UpdaterClass::writeStream ( Stream data)

Member Data Documentation

uint8_t* UpdaterClass::_buffer
private
size_t UpdaterClass::_bufferLen
private
uint32_t UpdaterClass::_command
private
uint32_t UpdaterClass::_currentAddress
private
uint8_t UpdaterClass::_error
private
MD5Builder UpdaterClass::_md5
private
size_t UpdaterClass::_size
private
uint32_t UpdaterClass::_startAddress
private
String UpdaterClass::_target_md5
private