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

Getting crash in MQTTPublishPacket.swift #27

Open
Nautiyalsachin opened this issue Jul 31, 2017 · 2 comments
Open

Getting crash in MQTTPublishPacket.swift #27

Nautiyalsachin opened this issue Jul 31, 2017 · 2 comments

Comments

@Nautiyalsachin
Copy link

Hi, I am trying to fetch all the pending messages whenever app comes in foreground but the app is getting crash on

init(header: MQTTPacketFixedHeader, networkData: Data) {

and at
let topicData = networkData.subdata(in: 2..<topicLength+2)
this line.

@manidharReddy
Copy link

manidharReddy commented Aug 25, 2018

Hi, I got the same issue can anybody help me in the above issue thank you

@Nautiyalsachin
Copy link
Author

try using https://github.com/Nautiyalsachin/SwiftMQTT. It contains solution for this issue.

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

2 participants