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

    ImportError: no module named 'threading'

    Scheduled Pinned Locked Moved LoPy
    lopythreadthreading
    3 Posts 3 Posters 3.1k Views 3 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.
    • T Offline
      thomand1000
      last edited by

      I'm trying to use threads on a Lopy and need more control over the threads than the _threads module can provide. I see from this: https://pycom.io/qa-micropython-multi-threading-garbage-collector/ (third Question) that 'from threading import Thread' now should be a valid import. However, this is not the case.

      Does anyone know how to fix this or how to work with threads in a good way on the Lopy?

      I'm trying to make a gateway with one Lopy that listens to incoming packets from other Lopy's over raw Lora. Additionally, the gateway is supposed to both be able to send what it gets from the other Lopy's to a web server and send packets (signalling information) to the Lopy's. This info could be how often the Lopy's should send updates to the gateway etc.

      Any help would be awesome! :)

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        livius @thomand1000
        last edited by

        @thomand1000
        did you looked into docs?
        https://docs.pycom.io/chapter/tutorials/all/threading.html
        https://docs.pycom.io/chapter/firmwareapi/micropython/_thread.html

        think about people first, then computers

        1 Reply Last reply Reply Quote 0
        • sebS Offline
          seb
          last edited by

          try _thread

          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