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

    Function lora.ischannel_free(-100) get error

    Scheduled Pinned Locked Moved Issues & Bugs
    5 Posts 3 Posters 233 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.
    • F Offline
      fernandes.son
      last edited by

      Does this function check the channel of the last transmission?

      TypeError: function takes 3 positional arguments but 2 were given
      Pycom MicroPython 1.20.2.rc6 [v1.11-01f49f7] on 2020-02-28; LoPy4 with ESP32
      Pybytes Version: 1.3.1

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jcaron @fernandes.son
        last edited by

        @fernandes-son another case of wrong documentation... the function requires a second argument which seems to be the time (in ms) the measurement has to be made.

        It happens here: https://github.com/pycom/pycom-micropython-sigfox/blob/Dev/esp32/mods/modlora.c#L2329

        F 1 Reply Last reply Reply Quote 2
        • F Offline
          fernandes.son @jcaron
          last edited by

          @jcaron Can you confirm if the return is based on the last packet received from the GW or not?

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jcaron @fernandes.son
            last edited by

            @fernandes-son It uses self->frequency which is the same value as that returned by the lora.frequency method. self->frequency should be the same as lora_obj.frequency.

            Going very very quickly through the code it seems to be this would be more likely to be the frequency data was/is going to be sent on, but the lora_obj may be passed to other parts of the code.

            It should be easy to test, though, just call lora.frequency to see what it returns in various scenarios. Don't have a LoPy at hand to test this here at the moment.

            G 1 Reply Last reply Reply Quote 0
            • G Offline
              GregS @jcaron
              last edited by

              This post is deleted!
              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