Prepare OTA execution

This commit is contained in:
2024-10-05 20:28:55 +02:00
parent 80452e10de
commit f4dda44d15
5 changed files with 61 additions and 2 deletions

24
esp32_device/main/ota.h Normal file
View File

@ -0,0 +1,24 @@
/**
* OTA functions
*/
#pragma once
#include <stddef.h>
#include <stdbool.h>
#ifdef __cplusplus
extern "C"
{
#endif
/**
* Update device to a desired version
*
* Returns TRUE in case of success / FALSE otherwise
*/
bool ota_perform_update(const char *version);
#ifdef __cplusplus
}
#endif