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

    send signals to pybytes via LTE

    Scheduled Pinned Locked Moved Support & Troubleshooting
    5 Posts 2 Posters 64 Views 2 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.
    • P Offline
      PVBRAIN CETENMA
      last edited by

      Hello, I need to send data from my FiPy to Pybytes via NB-IoT (LTE) and I just know how to do it via wifi. As I do not have wifi in the location of the measurements, it's necessary to get the connection via LTE. The LTE network is configured in Pybytes for each device, but I just get sending signals via wifi (see capture below).

      Any idea?

      Thank you.

      1.PNG

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

        I don't use pybytes but presumabley you'd start by trying to replace the code refernecing the WiFi/WLAN module with LTE the module: https://docs.pycom.io/firmwareapi/pycom/network/lte/

        The actual connection will probably be a socket (usocket module): https://docs.pycom.io/firmwareapi/micropython/usocket/

        Whether you use pybytes or your own server, it's (presumably) just an IP connection up the server.

        1 Reply Last reply Reply Quote 0
        • P Offline
          PVBRAIN CETENMA
          last edited by

          It seems that the LTE connection is correct but still receiving via WiFi, even if I disable WiFi network in configuration.

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

            Looks like they have some convenience functions for pybytes..
            Around half way down the page https://docs.pycom.io/pybytes/api/ you'll see..

            "
            pybytes.connect_lte()

            Connect to Pybytes using LTE and the settings from the configuration file.
            "

            P 1 Reply Last reply Reply Quote 0
            • P Offline
              PVBRAIN CETENMA @goldfishalpha
              last edited by PVBRAIN CETENMA

              @goldfishalpha thanks for your reply

              I need to change the order of network preferences:

              • pybytes.set_config('network_preferences', ["lte", "wifi"])
              1 Reply Last reply Reply Quote 1

              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