aciidgh / SwiftMQTT

MQTT Client in pure swift ❤️
MIT License
270 stars 71 forks source link

retain is bit 0 of the flags, not bit 3 #24

Closed paulw11 closed 7 years ago

paulw11 commented 7 years ago

fixedHeaderFlags(for:) incorrectly set bit 3 rather than bit 0 for retained messages with the result that retained messages could not be published

bhargavg commented 7 years ago

LGTM, Thanks for the PR.