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.
-
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/
-
@Gijs Isn’t NB-IoT (often) restricted to UDP only?
-
Sorry, I was not aware of that!
-
@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...
-
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.
-
@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?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login