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

    ABP connection with Pybytes TypeError: function takes 3 positional arguments but 2 were given

    Scheduled Pinned Locked Moved LoPy
    pybytes
    2 Posts 2 Posters 670 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.
    • A Offline
      asavvin
      last edited by

      I am trying to connect Lopy4 with Pytrack to Pybytes.
      I could not define it in config.py correctly.
      configuration defined to use first lora_abp first
      server': 'mqtt.pybytes.pycom.io',
      'network_preferences': ["lora_abp","wifi"],
      ABP defined as:
      abp': {
      'nwk_skey': 'xxx',
      'app_skey': 'xxx',
      'dev_addr': 'xxxxxx'
      }

      getting an error message for 3d parameter

      Using configuration config.py file from /flash folder
      WMAC: 30aea4785f7c
      Firmware: 1.17.5.b2
      Traceback (most recent call last):
      File "_main.py", line 95, in <module>
      File "/flash/lib/pybytes.py", line 30, in connect_lora_abp
      TypeError: function takes 3 positional arguments but 2 were given
      MicroPython v1.8.6-849-b9d53b40 on 2018-05-03; LoPy4 with ESP32

      Please advice

      1 Reply Last reply Reply Quote 0
      • J Offline
        jirkakrepl
        last edited by

        Hi @asavvin, thanks for reporting this issue. We are working on making lora working properly now.

        software developer @ Pycom

        Have you checked out our docs for the answer? (Now with an easy search function) https://docs.pycom.io

        Check out our newly revamped device management platform, Pybytes! https://pybytes.pycom.io/

        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