Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hardware registration issue #133

Merged
merged 1 commit into from
Aug 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Wippersnapper_Registration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;

Expand Down