We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Only on startup a heartbeat is published. Original code:
if (mqttClient.connected()) { if (mqttenabled == 1) { if ((unsigned)now() >= nextbeat) { mqtt_publish_heartbeat(now()); } nextbeat = (unsigned)now() + interval; } }
This code will extend the nexbeat every time the loop passes, so now() will never be greater than nextbeat Move the line to the if:
now()
nextbeat
if (mqttClient.connected()) { if (mqttenabled == 1) { if ((unsigned)now() >= nextbeat) { mqtt_publish_heartbeat(now()); nextbeat = (unsigned)now() + interval; } } }
The text was updated successfully, but these errors were encountered:
This is already fixed on the dev branch, thank you for the feedback.
Sorry, something went wrong.
No branches or pull requests
Only on startup a heartbeat is published.
Original code:
This code will extend the nexbeat every time the loop passes, so
now()
will never be greater thannextbeat
Move the line to the if:
The text was updated successfully, but these errors were encountered: