Skip to content

Commit

Permalink
Add logging when refreshToken() fails
Browse files Browse the repository at this point in the history
  • Loading branch information
nmtoblum committed Jun 29, 2024
1 parent 14dd09a commit f00fd70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
// for the documentation about the extensions.json format
"recommendations": [
"platformio.platformio-ide"
],
"unwantedRecommendations": [
"ms-vscode.cpptools-extension-pack"
]
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"files.associations": {
"functional": "cpp",
"random": "cpp"
}
},
"cmake.configureOnOpen": false
}
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ boolean refreshToken() {
state = SMODEPOLLPRESENCE;
} else {
DBG_PRINTLN(F("refreshToken() - Error:"));
Serial.println(responseDoc.as<String>());
// Set retry after timeout
tsPolling = millis() + (DEFAULT_ERROR_RETRY_INTERVAL * 1000);
}
Expand Down

0 comments on commit f00fd70

Please sign in to comment.