Function lora.ischannel_free(-100) get error
-
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 -
@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
-
@jcaron Can you confirm if the return is based on the last packet received from the GW or not?
-
@fernandes-son It uses
self->frequencywhich is the same value as that returned by thelora.frequencymethod.self->frequencyshould be the same aslora_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_objmay be passed to other parts of the code.It should be easy to test, though, just call
lora.frequencyto see what it returns in various scenarios. Don't have a LoPy at hand to test this here at the moment. -
This post is deleted!
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