Classes | |
| struct | FirmwareUpdateActorState |
Typedefs | |
| using | string = std::string |
| using | string_view = std::experimental::string_view |
| using | MD5Sum = std::array< uint8_t, 16 > |
| using | FirmwareVersion = uint64_t |
| using | UUID = UUID::UUID |
| using | MutableFileMetadataFlatbuffer = std::vector< uint8_t > |
Functions | |
| auto | get_current_partition () -> const esp_partition_t * |
| auto | get_next_ota_partition () -> const esp_partition_t * |
| auto | get_factory_partition () -> const esp_partition_t * |
| auto | compare_partitions (const esp_partition_t *lhs, const esp_partition_t *rhs) -> bool |
| auto | reboot () -> void |
| auto | factory_reset () -> void |
| auto | get_current_firmware_version () -> FirmwareVersion |
| auto | checksum_partition_md5 (const esp_partition_t *partition, const size_t partition_size) -> MD5Sum |
| auto | checksum_file_md5 (const string_view path) -> MD5Sum |
| auto | get_md5sum_hex_str (const MD5Sum &md5sum) -> std::string |
| auto | firmware_update_actor_behaviour (const Pid &self, StatePtr &_state, const Message &message) -> ResultUnion |
| auto | firmware_update_actor_behaviour (const ActorModel::Pid &self, ActorModel::StatePtr &state, const ActorModel::Message &message) -> ActorModel::ResultUnion |
Variables | |
| constexpr char | TAG [] = "firmware_update" |
| using FirmwareUpdate::FirmwareVersion = typedef uint64_t |
| using FirmwareUpdate::MD5Sum = typedef std::array<uint8_t, 16> |
| using FirmwareUpdate::MutableFileMetadataFlatbuffer = typedef std::vector<uint8_t> |
| typedef std::string FirmwareUpdate::string |
| typedef std::experimental::string_view FirmwareUpdate::string_view |
| using FirmwareUpdate::UUID = typedef UUID::UUID |
| auto FirmwareUpdate::checksum_file_md5 | ( | const string_view | path | ) | -> MD5Sum |
| auto FirmwareUpdate::checksum_partition_md5 | ( | const esp_partition_t * | partition, |
| const size_t | partition_size | ||
| ) | -> MD5Sum |
| auto FirmwareUpdate::compare_partitions | ( | const esp_partition_t * | lhs, |
| const esp_partition_t * | rhs | ||
| ) | -> bool |
| auto FirmwareUpdate::factory_reset | ( | ) | -> void |

| auto FirmwareUpdate::firmware_update_actor_behaviour | ( | const ActorModel::Pid & | self, |
| ActorModel::StatePtr & | state, | ||
| const ActorModel::Message & | message | ||
| ) | -> ActorModel::ResultUnion |
| auto FirmwareUpdate::firmware_update_actor_behaviour | ( | const Pid & | self, |
| StatePtr & | _state, | ||
| const Message & | message | ||
| ) | -> ResultUnion |

| auto FirmwareUpdate::get_current_firmware_version | ( | ) | -> FirmwareVersion |
| auto FirmwareUpdate::get_current_partition | ( | ) | -> const esp_partition_t * |
| auto FirmwareUpdate::get_factory_partition | ( | ) | -> const esp_partition_t * |
| auto FirmwareUpdate::get_md5sum_hex_str | ( | const MD5Sum & | md5sum | ) | -> std::string |
| auto FirmwareUpdate::get_next_ota_partition | ( | ) | -> const esp_partition_t * |

| auto FirmwareUpdate::reboot | ( | ) | -> void |
| constexpr char FirmwareUpdate::TAG[] = "firmware_update" |