SwiftMQTT:MQTT的简单客户端

时间:2024-05-28 10:53:37
【文件属性】:

文件名称:SwiftMQTT:MQTT的简单客户端

文件大小:187KB

文件格式:ZIP

更新时间:2024-05-28 10:53:37

Swift

SwiftMQTT MQTT协议中文版: MQTT协议英文版: 如何使用 创建MQTT Client与MQTT Account client = SwiftMQTTClient(clientId: NSProcessInfo().globallyUniqueString, account: SwiftMQTTAccount(username: "tripleCC", password: "cg"), keepalive: 90) 设置连接地址与端口 client?.connectToHost("localhost", port: 1883) 设置代理并实现相关代理协议,监听收到的信息 self.client?.delegate = self // SwiftMQTTClientDelegate func mqttClient(client: SwiftMQTTClient, didRec


【文件预览】:
SwiftMQTT-master
----SwiftMQTT.xcworkspace()
--------contents.xcworkspacedata(227B)
--------xcuserdata()
----Pods()
--------CocoaAsyncSocket()
--------Manifest.lock(368B)
--------Target Support Files()
--------Headers()
--------Pods.xcodeproj()
----SwiftMQTT()
--------ViewController.swift(2KB)
--------Info.plist(1KB)
--------AppDelegate.swift(2KB)
--------Base.lproj()
--------Assets.xcassets()
----Podfile.lock(368B)
----Podfile(57B)
----README.md(1KB)
----SwiftMQTTFrameworkTests()
--------SwiftMQTTFrameworkTests.swift(5KB)
--------Info.plist(733B)
----SwiftMQTTFramework()
--------SwiftMQTT.swift(15KB)
--------Info.plist(806B)
--------SwiftMQTTExtension.swift(2KB)
--------SwiftMQTTClient.swift(14KB)
--------SwiftMQTTFramework.h(556B)
----SwiftMQTT.xcodeproj()
--------project.xcworkspace()
--------xcuserdata()
--------project.pbxproj(28KB)

网友评论