aciidgh / SwiftMQTT

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

Getting crash in MQTTPublishPacket.swift #27

Open Nautiyalsachin opened 7 years ago

Nautiyalsachin commented 7 years ago

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 commented 6 years ago

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

Nautiyalsachin commented 6 years ago

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