Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/AutoConnect/commit/47d80c723c7a883662aeda98dc2467ef75e0e577?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
9 additions and
6 deletions
src/AutoConnectOTA.cpp
@ -159,21 +159,25 @@ size_t AutoConnectOTA::_write(const uint8_t *buf, const size_t size) {
* @ param status Updater binary upload completion status .
* @ param status Updater binary upload completion status .
*/
*/
void AutoConnectOTA : : _close ( const HTTPUploadStatus status ) {
void AutoConnectOTA : : _close ( const HTTPUploadStatus status ) {
AC_DBG ( " OTA update " ) ;
if ( ! _err . length ( ) ) {
if ( ! _err . length ( ) ) {
AC_DBG ( " OTA update " ) ;
if ( status = = UPLOAD_FILE_END ) {
if ( status = = UPLOAD_FILE_END ) {
if ( Update . end ( true ) ) {
if ( Update . end ( true ) ) {
_status = OTA_SUCCESS ;
_status = OTA_SUCCESS ;
AC_DBG_DUMB ( " succeeds, turn to reboot. \n " ) ;
AC_DBG_DUMB ( " succeeds, turn to reboot" ) ;
}
}
else
else {
_setError ( ) ;
_setError ( ) ;
AC_DBG_DUMB ( " flash failed " ) ;
}
}
}
else {
else {
Update . end ( false ) ;
AC_DBG_DUMB ( " aborted " ) ;
AC_DBG_DUMB ( " aborted \n " ) ;
}
}
}
}
AC_DBG_DUMB ( " . %s \n " , _err . c_str ( ) ) ;
if ( _err . length ( ) )
Update . end ( false ) ;
if ( _tickerPort ! = - 1 )
if ( _tickerPort ! = - 1 )
digitalWrite ( _tickerPort , ! _tickerOn ) ;
digitalWrite ( _tickerPort , ! _tickerOn ) ;
}
}
@ -221,6 +225,5 @@ void AutoConnectOTA::_setError(void) {
StreamString eStr ;
StreamString eStr ;
Update . printError ( eStr ) ;
Update . printError ( eStr ) ;
_err = String ( eStr . c_str ( ) ) ;
_err = String ( eStr . c_str ( ) ) ;
AC_DBG ( " %s \n " , _err . c_str ( ) ) ;
_status = OTA_FAIL ;
_status = OTA_FAIL ;
}
}