pod install
修改Config
中的配置文件
struct MqttOptions {
static let to = "" // xxx.cn1.mqtt.chat
static let port = 1883
static let appID = "" // xxx
static let base = "https://api.cn1.mqtt.chat/app/xxx"
static let orgName = ""
static let appName = ""
static var tokenBase: String {
return "https://a1.easemob.com/\(orgName)/\(appName)/token"
}
static var appKey: String {
return "\(orgName)#\(appName)"
}
static let clientID = ""
static let clientSecret = ""
}