emqx / CocoaMQTT

MQTT 5.0 client library for iOS and macOS written in Swift
https://www.emqx.com/en
Other
1.57k stars 411 forks source link

CocoaMQTT5Message throwing "No exact matches to initializer" error #540

Closed hothsolo closed 10 months ago

hothsolo commented 11 months ago

CocoaMQTT5Message throwing "No exact matches to initializer" error. I tried copying the direct line from the example file to test it even tho those aren't the channel or string I want to send.

let lastWillMessage = CocoaMQTT5Message(topic: "/will", string: "dieout")

I'm not sure why I'm getting this. Any ideas? I should mention, I'm trying to run this message send inside a CBCentralManager function (CoreBLE). Maybe that's part of the problem?

Cj

hothsolo commented 11 months ago

Nevermind. I found it was a typo.

Cj