added receive no answer counter #332

corrected resetPayload in app loop
This commit is contained in:
lumapu 2022-10-11 13:21:29 +02:00
parent 67f99abdfc
commit 7cd075fbad
4 changed files with 23 additions and 15 deletions

View file

@ -129,10 +129,11 @@ void webApi::getSystem(JsonObject obj) {
//-----------------------------------------------------------------------------
void webApi::getStatistics(JsonObject obj) {
obj[F("rx_success")] = mStat->rxSuccess;
obj[F("rx_fail")] = mStat->rxFail;
obj[F("frame_cnt")] = mStat->frmCnt;
obj[F("tx_cnt")] = mApp->mSys->Radio.mSendCnt;
obj[F("rx_success")] = mStat->rxSuccess;
obj[F("rx_fail")] = mStat->rxFail;
obj[F("rx_fail_answer")] = mStat->rxFailNoAnser;
obj[F("frame_cnt")] = mStat->frmCnt;
obj[F("tx_cnt")] = mApp->mSys->Radio.mSendCnt;
}