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
https://github.com/digidotcom/python-mqtt/tree/master/paho/mqtt

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

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.

...