Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    NBIOT will it support TLS for making MQtt connection

    Scheduled Pinned Locked Moved Discussion
    othertlsnbiot
    7 Posts 5 Posters 122 Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      srihari
      last edited by srihari

      i am trying to implement tls using NBIOT module but i am unable to find command.

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by

        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/

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          jcaron @Gijs
          last edited by

          @Gijs Isn’t NB-IoT (often) restricted to UDP only?

          1 Reply Last reply Reply Quote 1
          • G Offline
            Gijs
            last edited by

            Sorry, I was not aware of that!

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              jcaron @Gijs
              last edited by

              @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...

              1 Reply Last reply Reply Quote 0
              • R Offline
                randomrnti
                last edited by

                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.

                1 Reply Last reply Reply Quote 1
                • B Offline
                  bitvijays
                  last edited by

                  @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?

                  1 Reply Last reply Reply Quote 0

                  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
                  • 1 / 1
                  • First post
                    Last post

                  Pycom on Twitter

                  Pycom