CocoaMQTT
CocoaMQTT copied to clipboard
Type 'MQTTClient' does not conform to protocol 'CocoaMQTTDelegate'
Title: [Help] Type 'MQTTClient' does not conform to protocol 'CocoaMQTTDelegate'
Content: Hello everyone,
I am using CocoaMQTT for development, but I encountered a problem. When I try to create a type that conforms to the CocoaMQTTDelegate protocol, the compiler reports an error: Type 'MQTTClient' does not conform to protocol 'CocoaMQTTDelegate'
.
I have made sure that my MQTTClient
type conforms to the CocoaMQTTDelegate
protocol and implements all the methods defined in the protocol. But the problem still exists.
I would like to ask if anyone in the community has encountered similar problems and how to solve them. If you have any suggestions or solutions, please let me know. Thank you very much!
Best regards, ray
標題:[求助] Type 'MQTTClient' does not conform to protocol 'CocoaMQTTDelegate'
內容: 大家好,
我正在使用 CocoaMQTT 進行開發,但是遇到了一個問題。當我嘗試創建一個遵守 CocoaMQTTDelegate 協議的類型時,編譯器報錯:Type 'MQTTClient' does not conform to protocol 'CocoaMQTTDelegate'
。
我已經確保我的 MQTTClient
類型遵守了 CocoaMQTTDelegate
協議,並且實現了協議中定義的所有方法。但是問題仍然存在。
我想請問社區的朋友們是否有遇到類似的問題,以及如何解決。如果您有任何建議或解決方案,請告訴我。非常感謝!
祝好, ray