Wombat Environmental Node 1.0
An environmental node for SDI-12 and digital sensors.
Loading...
Searching...
No Matches
ota_update.h
Go to the documentation of this file.
1#ifndef WOMBAT_OTA_UPDATE_H
2#define WOMBAT_OTA_UPDATE_H
3
4#include <stdint.h>
5#include <stddef.h>
6
7typedef struct {
8 uint16_t new_major;
9 uint16_t new_minor;
10 uint16_t new_update;
11 size_t file_len;
12 char file_hash[41];
13 char git_commit_id[41];
15
17bool ota_download_update(const ota_firmware_info_t& ota_ctx);
18bool ota_download_sdi12defn(void);
19void back_to_factory(void);
20#endif //WOMBAT_OTA_UPDATE_H
bool ota_download_update(const ota_firmware_info_t &ota_ctx)
Definition: ota_update.cpp:73
int ota_check_for_update(ota_firmware_info_t &ota_ctx)
Definition: ota_update.cpp:23
bool ota_download_sdi12defn(void)
Definition: ota_update.cpp:182
void back_to_factory(void)
Definition: ota_update.cpp:237
Definition: ota_update.h:7
uint16_t new_update
Definition: ota_update.h:10
uint16_t new_minor
Definition: ota_update.h:9
size_t file_len
Definition: ota_update.h:11
uint16_t new_major
Definition: ota_update.h:8