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

Fixed message id generation according to spec #138

Merged
merged 1 commit into from
Nov 21, 2013

Commits on Oct 28, 2013

  1. Fixed message id generation according to spec

    Changed id generation from random to increasing by one - as suggested by
    the specification. Using random numbers does not guarantee that the same
    id isn't used twice. Also made sure that 0 is never used since it's an
    invalid message id.
    
    For details see section 2.4 of the spec:
    http://public.dhe.ibm.com/software/dw/webservices/ws-mqtt/mqtt-v3r1.html#msg-id
    Maximilian Antoni authored and mantoni committed Oct 28, 2013
    Configuration menu
    Copy the full SHA
    504f1fc View commit details
    Browse the repository at this point in the history