ESP8266
|
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 |
UpdaterClass::UpdaterClass | ( | ) |
|
private |
|
private |
|
private |
|
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 | ||
) |
size_t UpdaterClass::write | ( | T & | data | ) |
size_t UpdaterClass::writeStream | ( | Stream & | data | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |