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

KeepLive PingReq Packet send wrong #40

Open
sunkuo opened this issue Nov 7, 2015 · 0 comments
Open

KeepLive PingReq Packet send wrong #40

sunkuo opened this issue Nov 7, 2015 · 0 comments

Comments

@sunkuo
Copy link

sunkuo commented Nov 7, 2015

In the time_mosq.c file ,line 88 , You should change "sec = (ticks/1000000000)(tb.numer/tb.denom);" to "sec = (ticks(tb.numer/tb.denom)/1000000000);"
Otherwise , when you set keepLive to 5 second ,MQTTKit keep reconnected to server

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

No branches or pull requests

1 participant