|
Wombat Environmental Node 1.0
An environmental node for SDI-12 and digital sensors.
|
#include "ota_update.h"#include "ftp_stack.h"#include "globals.h"#include <mbedtls/sha1.h>#include <esp_ota_ops.h>#include <SPIFFS.h>#include <ArduinoJson.h>Macros | |
| #define | TAG "ota_update" |
Functions | |
| int | ota_check_for_update (ota_firmware_info_t &ota_ctx) |
| bool | ota_download_update (const ota_firmware_info_t &ota_ctx) |
| bool | ota_download_sdi12defn (void) |
| void | back_to_factory (void) |
Variables | |
| static const char * | wombat_sha1 = "wombat.sha1" |
| static const char * | wombat_bin = "wombat.bin" |
| static constexpr size_t | MAX_SDI12DEFN_SZ = 2024 |
| #define TAG "ota_update" |
| void back_to_factory | ( | void | ) |
| int ota_check_for_update | ( | ota_firmware_info_t & | ota_ctx | ) |
Check if the server has a newer version of the firmware than is running on the Wombat.
| ota_ctx | a reference to an OTA firmware info structure that carries info about the firmware on the server. |
| bool ota_download_sdi12defn | ( | void | ) |
| bool ota_download_update | ( | const ota_firmware_info_t & | ota_ctx | ) |
|
staticconstexpr |
|
static |
|
static |