[SOLVED] Educational broker connection and publishing issues

Hello,
I am wondering if there is a problem with the broker (education and my username is jpetit).
Today, my python script is having trouble to connect and subscribe to the broker:

Received CONNACK (0, 5)
Connected with result code 5
Subscribed to /v1.6/devices/zolertia/+/lv
Sending SUBSCRIBE (d0) [('/v1.6/devices/zolertia/+/lv', 1)]
Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k50) client_id=
Received CONNACK (0, 5)
Connected with result code 5
Subscribed to /v1.6/devices/zolertia/+/lv
Sending SUBSCRIBE (d0) [('/v1.6/devices/zolertia/+/lv', 1)]
Sending CONNECT (u1, p1, wr0, wq0, wf0, c1, k50) client_id=
Received CONNACK (0, 0)
Connected with result code 0
Subscribed to /v1.6/devices/zolertia/+/lv
Sending SUBSCRIBE (d0) [('/v1.6/devices/zolertia/+/lv', 1)]
Received SUBACK

And when publishing, if I use MQTT and QoS level 1 to get acknowledgment (and have some additional information if the packet was sent), I get a PUBACK but nothing in Ubidots and no subscription’s message.

Sending PUBLISH (d0, q1, r0, m6), '/v1.6/devices/zolertia', ... (11 bytes)
Data sent to server
Received PUBACK (Mid: 6)

I’m using Paho MQTT for the python script.
I’ve tried MQTT Lens which worked and so it lets me wondering if the problem is on my side or on Ubidots side.
Do you have an idea of what could explain this situation?

Thank you.

Greetings, we do not report issues with our broker. If MQTT Lens works properly, for sure the issue is not at our side, please make sure that you are not setting the MQTT connection through web sockets but TCP in your Paho instance, as web sockets are not supported right now.

All the best.

Hello,

Ok, problem is this code worked last week without changes which concerns me.
As for the subscribe and connect problem result code 5 is “5: Connection refused – not authorised”. Can you check if there is a problem with my account?
Maybe I’ve reached like you said last time “I suspect that you have reached the max number of available devices” I suppose is the number of python clients connected to Ubidots?
The thing is I don’t know how you count this, if your using the ip address or something, because I use a VPN changing IP address quite often and I don’t know if it can explain it…

Thank you.

Greetings, this message “5: Connection refused – not authorised” means that you are using a wrong username, please make sure that you set up your MQTT connection as follows:

broker: things.ubidots.com
username: Your Ubidots TOKEN
password: Your Ubidots TOKEN

If you are connecting through TLS, make sure to use this certificate.

About this, "I suspect that you have reached the max number of available devices”, educational accounts have a limit of 20 devices.

All the best