|
AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
|
#include <ota.hpp>


Public Member Functions | |
| DataRequest () | |
| DataRequest (JsonObject jsonObj) | |
| JsonObject | addTo (JsonObject &&jsonObj) const |
| size_t | jsonObjectSize () const |
Public Member Functions inherited from painlessmesh::plugin::ota::Announce | |
| Announce () | |
| Announce (JsonObject jsonObj) | |
Public Member Functions inherited from painlessmesh::plugin::BroadcastPackage | |
| BroadcastPackage (int type) | |
| BroadcastPackage (JsonObject jsonObj) | |
Public Member Functions inherited from painlessmesh::protocol::PackageInterface | |
| virtual | ~PackageInterface ()=default |
Static Public Member Functions | |
| static DataRequest | replyTo (const Announce &ann, uint32_t from, size_t partNo) |
| static DataRequest | replyTo (const Data &d, size_t partNo) |
Public Attributes | |
| size_t | partNo = 0 |
| uint32_t | dest = 0 |
Public Attributes inherited from painlessmesh::plugin::ota::Announce | |
| TSTRING | md5 |
| TSTRING | hardware |
| TSTRING | role |
| The type of node the firmware is meant for. | |
| bool | forced = false |
| bool | broadcasted = false |
| bool | compressed = false |
| size_t | noPart = 0 |
Public Attributes inherited from painlessmesh::plugin::BroadcastPackage | |
| uint32_t | from = 0 |
| router::Type | routing = router::BROADCAST |
| int | type = 0 |
| int | noJsonFields = 3 |
Protected Member Functions | |
| DataRequest (int type) | |
Protected Member Functions inherited from painlessmesh::plugin::ota::Announce | |
| Announce (int type, router::Type routing) | |
Request (part of) the firmware update
This is send by the node needing the new firmware, to the firmware distribution node to request a part (DataRequest::partNo) of the data.
The package type/identifier is set to 11.
|
inline |
|
inline |
|
inlineprotected |
|
inlinevirtual |
Reimplemented from painlessmesh::plugin::ota::Announce.
|
inlinevirtual |
Reimplemented from painlessmesh::plugin::ota::Announce.
|
inlinestatic |
|
inlinestatic |
| uint32_t painlessmesh::plugin::ota::DataRequest::dest = 0 |
| size_t painlessmesh::plugin::ota::DataRequest::partNo = 0 |