Skip to content

KeepLive PingReq Packet send wrong #40

@sunkuo

Description

@sunkuo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions