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

MQTT / KeepAlive : incorrect update settings #515

Closed
bopnrgi opened this issue Feb 3, 2018 · 2 comments
Closed

MQTT / KeepAlive : incorrect update settings #515

bopnrgi opened this issue Feb 3, 2018 · 2 comments
Assignees
Milestone

Comments

@bopnrgi
Copy link

bopnrgi commented Feb 3, 2018

MQTT KeepAlive seems don't be updated correctly. I set 310 seconds. After reboot is 54 seconds.

To reproduce. Enable MQTT, set KeepAlive to 310, save, reboot device. MQTT page display now 53.
Firmware Sonoff TH 1.12.3

Bonus : Is it possible to debug MQTT KeepAlive (via telnet ?) ?

@xoseperez xoseperez added this to the 1.12.4 milestone Feb 3, 2018
@xoseperez xoseperez self-assigned this Feb 3, 2018
@xoseperez
Copy link
Owner

Indeed, the internal variable that caches the keepalive time was defined as unsigned char, so a max of 255 seconds... I have fixed it and pushed to dev.

@xoseperez
Copy link
Owner

This is staged for release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants