Skip to content

Update API #247

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

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ uint32_t PubSubClient::readPacket(uint8_t* lengthLength) {

boolean PubSubClient::loop() {
if (connected()) {
delay(500);
unsigned long t = millis();
if ((t - lastInActivity > this->keepAlive*1000UL) || (t - lastOutActivity > this->keepAlive*1000UL)) {
if (pingOutstanding) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ void setup() {
// wait 10 seconds for connection:
delay(10000);
}
server.setBlockingMode(); // set server to blocking mode
server.begin(); // start the web server on port 80
printWifiStatus(); // you're connected now, so print out the status
}
Expand Down
Loading