Home/Support/Support Forum/XBee Cellular 3G won't connect to Server
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

XBee Cellular 3G won't connect to Server

0 votes
Hi everyone,
I am using Digi Xbee Cellular 3G and have made a Web Server containing a database. The issue is that I am not able to connect to the database and the connect() function from the umqtt library throws an error "Index Error: Bytes Index Out of Range. Can anyone please help me resolve this issue?

My code is as follows:

from umqtt.simple import MQTTClient
mqttc = MQTTClient("XBee", "IPAddress", port, user="UsernameofMQTTBroker", password="PasswordofBroker")

What could be the issue?
asked Nov 6 in Digi Connect Cellular by faizi_968 New to the Community (2 points)

Please log in or register to answer this question.

2 Answers

0 votes
You might want to take a closer look at the example.

https://www.digi.com/resources/documentation/Digidocs/90001541/#reference/r_example_mqtt.htm%3FTocPath%3DXBee%2520connection%2520examples%7CGet%2520started%2520with%2520MQTT%7C_____1
answered Nov 13 by mvut Veteran of the Digi Community (11,450 points)
0 votes
Thanks for the help. It works perfect now.
answered Nov 13 by faizi_968 New to the Community (2 points)
...