OmEspHelpers
Public Member Functions | Public Attributes | List of all members
OmOtaClass Class Reference

Public Member Functions

void addEeFields ()
 
bool setup (const char *wifiSsid, const char *wifiPassword, const char *wifiBonjour=NULL, OtaStatusProc statusProc=NULL)
 
bool setup (OtaStatusProc statusProc=NULL)
 
bool loop ()
 
void rebootToOta ()
 
void addUpdateControl ()
 
const char * getIpAddress ()
 
void addWifiConfigForm ()
 
void retrieveWifiConfig ()
 

Public Attributes

const char * defaultSignature = "OmOta_xyzzy"
 
char otaBonjourName [OOC_STRING_LEN]
 
char otaWifiSsid [OOC_STRING_LEN]
 
char otaWifiPassword [OOC_STRING_LEN]
 

Member Function Documentation

◆ addUpdateControl()

void OmOtaClass::addUpdateControl ( )

Add an update control to the current page in progress

◆ addWifiConfigForm()

void OmOtaClass::addWifiConfigForm ( )

Add form for submitting new Wifi credentials and bonjour name

◆ getIpAddress()

const char * OmOtaClass::getIpAddress ( )

will return a printable IP Address String only after OSS_WIFI_CONNECT has happened

◆ loop()

bool OmOtaClass::loop ( )

Call at the beginning of your loop() function. If it returns true, skip the rest of your loop (Any work needed to update displays during setup and upload and such must be handled in your statusProc)

◆ rebootToOta()

void OmOtaClass::rebootToOta ( )

Call this to reboot, right now, into update mode. (The next boot after this won't be in ota mode.)

◆ retrieveWifiConfig()

void OmOtaClass::retrieveWifiConfig ( )

after eeprom is fully init'd, call to update the public fields of the wifi config.

◆ setup() [1/2]

bool OmOtaClass::setup ( const char *  wifiSsid,
const char *  wifiPassword,
const char *  wifiBonjour = NULL,
OtaStatusProc  statusProc = NULL 
)

If returns true, skip the rest of your own setup. Uses the whole eeprom, unless you set up eeprom yourself, and call OmOta.addEeFields().

◆ setup() [2/2]

bool OmOtaClass::setup ( OtaStatusProc  statusProc = NULL)

Setup using eeprom. optional callback setup.


The documentation for this class was generated from the following files: