-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to connect #98
Comments
Is 9001 the WebSocket port? CocoaMQTT now only supports tcp connections. |
FWIW, since updating to Swift 3 I've been getting the same:
This is against AdafruitIO, io.adafruit.com:1883 |
I'm having this issue as well. Any ideas?
I have tried about every permutation of the commented out settings... still no luck |
@axpence I have tried your host. The host's port 8000 fail, but port 1883 succeed. Please check your host port 8000. Thanks. |
@alexyu1989 nice name :). You are correct, I had the incorrect port. Thanks for your help! Sorry for the n00b question. |
@axpence You are welcome. Have fun with the framework :) |
I have a MQTT over WebSocket host with NodeRed. I am using this library in order to connect but I am getting the following error:
Error Domain=GCDAsyncSocketErrorDomain Code=7 "Socket closed by remote peer" UserInfo={NSLocalizedDescription=Socket closed by remote peer}
Code:
let clientIdPid = "CocoaMQTT-" + String(NSProcessInfo().processIdentifier)
let mqtt = CocoaMQTT(clientId: clientIdPid, host: "95.177.135.232", port: 9001)
mqtt.cleanSess = true
mqtt.keepAlive = 60
mqtt.delegate = self
mqtt.connect()
The text was updated successfully, but these errors were encountered: