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

    lora.stats() Documentation is missing the parameter must passed

    Scheduled Pinned Locked Moved Discussion
    lorarssilopy
    3 Posts 2 Posters 1.8k 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.
    • C Offline
      constantinos
      last edited by constantinos

      Hi
      I'm trying to call lora.stats() but I get an error.

      lora.stats()
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      TypeError: function takes 1 positional arguments but 0 were given
      >>> 
      

      I searched the documentation at https://docs.pycom.io/pycom_esp32/library/network.LoRa.html?highlight=rssi but says invalid info about this function

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        mmarkvoort @constantinos
        last edited by

        @constantinos What firmware version do you have?

        >>> import os
        >>> os.uname()
        (sysname='LoPy', nodename='LoPy', release='1.6.9.b1', version='v1.8.6-535-g84855b2b on 2017-03-24', machine='LoPy with ESP32', lorawan='1.0.0')
        

        At this version, which is the latest, it is working.

        >>> lora.stats()
        (timestamp=0, rssi=0, snr=0, sf=0)
        
        1 Reply Last reply Reply Quote 1
        • C Offline
          constantinos
          last edited by

          Thank you. I just made a firmware upgrade and now it works as described in documentation.

          Thanks a lot

          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