MCPcopy Create free account
hub / github.com/Hieromon/AutoConnect / _onUpdate

Method _onUpdate

src/AutoConnectUpdate.cpp:476–486  ·  view source on GitHub ↗

* AUTOCONNECT_URI_UPDATE_ACT page handler * Only display a dialog indicating that the update is in progress. * @param progress A reference of the AutoConnectAux as AUTOCONNECT_URI_UPDATE_ACT * @param args A reference of the PageArgument of the PageBuilder * @return Additional string to the page but it always null. */

Source from the content-addressed store, hash-verified

474 * @return Additional string to the page but it always null.
475 */
476String AutoConnectUpdateAct::_onUpdate(AutoConnectAux& progress, PageArgument& args) {
477 AC_UNUSED(args);
478
479 // Constructs the dialog page.
480 AutoConnectElement* binName = progress.getElement(F("binname"));
481 _binName = _auxCatalog->getElement<AutoConnectRadio>(F("firmwares")).value();
482 binName->value = _binName;
483 AutoConnectElement* url = progress.getElement(F("url"));
484 url->value = host + ':' + port;
485 return String("");
486}
487
488/**
489 * AUTOCONNECT_URI_UPDATE_RESULT page handler

Callers

nothing calls this directly

Calls 2

FFunction · 0.85
getElementMethod · 0.80

Tested by

no test coverage detected