I'm using different MQTT clients but it seems that all of them have similar problems. Server closes connection after subscription. Here is how it looks with mosquitto_sub:
$ mosquitto_sub -d -v -u <USER> -P <TOKEN> -h mqtt.thingspeak.com -p 8883 --capath /etc/ssl/certs -t channels/107178/subscribe/json -I mqtt Client mqtt12684 sending CONNECT Client mqtt12684 received CONNACK Client mqtt12684 sending SUBSCRIBE (Mid: 1, Topic: channels/107178/subscribe/json, QoS: 0) Client mqtt12684 received SUBACK Subscribed (mid: 1): 0 Client mqtt12684 sending CONNECT Client mqtt12684 received CONNACK Client mqtt12684 sending SUBSCRIBE (Mid: 2, Topic: channels/107178/subscribe/json, QoS: 0) Client mqtt12684 received SUBACK Subscribed (mid: 2): 0 ^C
It seems that it is somehow related with subscription limits for free account. Few first attempts worked for me but now I get this error even if I don't have active connection. It seems like my old subscriptions that are not active anymore (I terminated mosquitto_sub) are counted as "active" that is not true.
I used to have 1 active subscription to 111206 from OpenHab. To make sure that it is really only 1 connection I removed OpenHab subscriptions completely and restarted OpenHab. Now it seems that problem is gone so it looks like it was something on my side. Now I can have 3 simultaneous connections with mosquitto_sub. Really sorry for false alarm.
Most Users Ever Online: 114
Currently Browsing this Page:
Guest Posters: 1
Administrators: Hans, lee