Home/Support/Support Forum/python TLS outdated on xbee gateway

python TLS outdated on xbee gateway

0 votes
I tried to publish MQTT files directly from the xbee gateway using the PAHO micropython

def publish(clientId, topic, msg, hostname=""):
c = mqtt.Client(client_id=clientId)
c.tls_set(ca_certs="certs/TeamViewerAuthority.crt", certfile="certs/clie
context = ssl.create_default_context()
print("\t MQTT {0}...".format(hostname)),
c.connect(hostname, port=18884)
c.publish(topic, payload=msg)

But the result I got was:

"Exception: Python 2.7.9 and 3.2 are the minimum supported versions for TLS."

As long as I know, python on the xbee gateway is 2.7.1 and cannot be updated. Any ideas how to go around this?
asked Jun 9 in Linux-based Gateways by alv1 New to the Community (0 points)

Please log in or register to answer this question.