NBIOT will it support TLS for making MQtt connection
-
i am trying to implement tls using NBIOT module but i am unable to find command.
-
@randomrnti Just curious, which NB-IoT network would be that? Is it via PyCom Vodafone NB-IoT sim? or you have setup a MQTT Server on a dedicated server and made that server reachable from Vodafone NB-IoT SIM?
-
https://github.com/micropython/micropython-lib/blob/master/umqtt.simple/umqtt/simple.py
I've used the simple mqtt library (and robust mqtt). It includes an argument just set ssl=True in client.connect(...). Worked for me.
-
@Gijs I never used it so I'm not completely sure, but I believe it is. Not sure whether that's part of the specs or if it's a limitation from the carriers (and could thus be difference between carriers), though.
If someone has a definitive answer...
-
Sorry, I was not aware of that!
-
@Gijs Isn’t NB-IoT (often) restricted to UDP only?
-
Hi,
You can use the socket to add SSL:import socket import ssl s = socket.socket() ss = ssl.wrap_socket(s) ss.connect(socket.getaddrinfo('google.com',443)[0][-1])
The information is here: http://docs.pycom.io/tutorials/networkprotocols/https/