mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-21 01:07:51 +00:00
19 lines
438 B
C
19 lines
438 B
C
|
|
#ifndef MESHTASTICOTA_H
|
||
|
|
#define MESHTASTICOTA_H
|
||
|
|
|
||
|
|
#include "mesh-pb-constants.h"
|
||
|
|
#include <Arduino.h>
|
||
|
|
|
||
|
|
namespace MeshtasticOTA
|
||
|
|
{
|
||
|
|
void initialize();
|
||
|
|
bool isUpdated();
|
||
|
|
|
||
|
|
void recoverConfig(meshtastic_Config_NetworkConfig *network);
|
||
|
|
void saveConfig(meshtastic_Config_NetworkConfig *network, meshtastic_OTAMode method, uint8_t *ota_hash);
|
||
|
|
bool trySwitchToOTA();
|
||
|
|
const char *getVersion();
|
||
|
|
} // namespace MeshtasticOTA
|
||
|
|
|
||
|
|
#endif // MESHTASTICOTA_H
|