@ -148,10 +148,6 @@ class Web {
}
}
void showUpdate2 ( AsyncWebServerRequest * request , String filename , size_t index , uint8_t * data , size_t len , bool final ) {
void showUpdate2 ( AsyncWebServerRequest * request , String filename , size_t index , uint8_t * data , size_t len , bool final ) {
# if !defined(ETHERNET)
mApp - > setOnUpdate ( ) ;
# endif /* !defined(ETHERNET) */
if ( ! index ) {
if ( ! index ) {
Serial . printf ( " Update Start: %s \n " , filename . c_str ( ) ) ;
Serial . printf ( " Update Start: %s \n " , filename . c_str ( ) ) ;
# ifndef ESP32
# ifndef ESP32
@ -719,16 +715,13 @@ class Web {
metrics + = String ( type ) + String ( topic ) ;
metrics + = String ( type ) + String ( topic ) ;
// NRF Statistics
// NRF Statistics
stat = mApp - > getStatistics ( ) ;
stat = mApp - > getNrfStatistics ( ) ;
uint32_t nrfSendCnt ;
uint32_t nrfRetransmits ;
mApp - > getNrfRadioCounters ( & nrfSendCnt , & nrfRetransmits ) ;
metrics + = radioStatistic ( F ( " rx_success " ) , stat - > rxSuccess ) ;
metrics + = radioStatistic ( F ( " rx_success " ) , stat - > rxSuccess ) ;
metrics + = radioStatistic ( F ( " rx_fail " ) , stat - > rxFail ) ;
metrics + = radioStatistic ( F ( " rx_fail " ) , stat - > rxFail ) ;
metrics + = radioStatistic ( F ( " rx_fail_answer " ) , stat - > rxFailNoAnser ) ;
metrics + = radioStatistic ( F ( " rx_fail_answer " ) , stat - > rxFailNoAnser ) ;
metrics + = radioStatistic ( F ( " frame_cnt " ) , stat - > frmCnt ) ;
metrics + = radioStatistic ( F ( " frame_cnt " ) , stat - > frmCnt ) ;
metrics + = radioStatistic ( F ( " tx_cnt " ) , nrfSend Cnt) ;
metrics + = radioStatistic ( F ( " tx_cnt " ) , stat - > tx Cnt) ;
metrics + = radioStatistic ( F ( " retrans_cnt " ) , n rfR etransmits) ;
metrics + = radioStatistic ( F ( " retrans_cnt " ) , stat - > retransmits ) ;
len = snprintf ( ( char * ) buffer , maxLen , " %s " , metrics . c_str ( ) ) ;
len = snprintf ( ( char * ) buffer , maxLen , " %s " , metrics . c_str ( ) ) ;
// Next is Inverter information
// Next is Inverter information