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
-
This post is deleted!
-
@fernandes-son It uses
self->frequency
which is the same value as that returned by thelora.frequency
method.self->frequency
should 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_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.
-
@jcaron Can you confirm if the return is based on the last packet received from the GW or not?
-
@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