Wombat Environmental Node 1.0
An environmental node for SDI-12 and digital sensors.
Loading...
Searching...
No Matches
ota_update.h File Reference
#include <stdint.h>
#include <stddef.h>
Include dependency graph for ota_update.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ota_firmware_info_t
 

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)
 

Function Documentation

◆ back_to_factory()

void back_to_factory ( void  )

◆ ota_check_for_update()

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.

Parameters
ota_ctxa reference to an OTA firmware info structure that carries info about the firmware on the server.
Returns
-1 if retrieving wombat.sha1 fails, 0 if the running version is at least as new as the version on the server, 1 if the server as a new version.

◆ ota_download_sdi12defn()

bool ota_download_sdi12defn ( void  )

◆ ota_download_update()

bool ota_download_update ( const ota_firmware_info_t ota_ctx)