Mirror of espurna firmware for wireless switches and more
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
681 B

/*
OTA MODULE
*/
#pragma once
#include "system.h"
// Main entrypoint for basic OTA methods
// (like clients, arduinoota and basic web)
void otaSetup();
void otaWebSetup();
void otaArduinoSetup();
void otaClientSetup();
void otaClientSetup();
// Helper methods from UpdaterClass that need to be called manually for async mode,
// because we are not using Stream interface to feed it data.
bool otaVerifyHeader(uint8_t* data, size_t len);
void otaProgress(size_t bytes, size_t each);
void otaProgress(size_t bytes);
void otaPrintError();
bool otaFinalize(size_t size, CustomResetReason reason, bool evenIfRemaining);
bool otaFinalize(size_t size, CustomResetReason reason);