From 8a97752f763a145960efc361b9435df2f33b9a9f Mon Sep 17 00:00:00 2001 From: brentru Date: Tue, 24 Aug 2021 12:19:43 -0400 Subject: [PATCH] fix reg issue --- src/Wippersnapper_Registration.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Wippersnapper_Registration.cpp b/src/Wippersnapper_Registration.cpp index 88ed50448..b5726d748 100644 --- a/src/Wippersnapper_Registration.cpp +++ b/src/Wippersnapper_Registration.cpp @@ -72,9 +72,9 @@ bool Wippersnapper_Registration::processRegistration() { break; case FSMReg::REG_DECODE_MSG: if (!pollRegMsg()) { - // delay 10 seconds between polling cycles - delay(10 * 1000); - // back to publishing state + // delay 1s between polling attempts + delay(1 * 1000); + // attempt to publish again _state = FSMReg::REG_PUBLISH_MSG; break; } @@ -160,7 +160,7 @@ bool Wippersnapper_Registration::pollRegMsg() { // poll for response from broker WS.feedWDT(); // let us drop out if we can't process - WS._mqtt->processPackets(10); + WS._mqtt->processPackets(100); if (WS._boardStatus == WS_BOARD_DEF_OK) is_success = true;