What methods are supported on LoPy's "LoRa" class?

Hello,

I tried to view the methods of lora by instantiating an object but it only returns the value used.

Is there a way to look at the code for specific methods.

lora = LoRa()
lora.coding_rate() = 4

I am interested to look at the code pertaining to it.

Thanks your suggestions will be helpful.

Sure, but how exactly would depend on which library\code you are using, and you have not said, so I cannot really help.

Is this related to code for point to point LoRa or The Things Network (TTN) ?

I am using the LoPy node by pycom and using Lora. But I guess some methods are common for both.
This code is in micropython.

Is there a way to check the source code for lora method in this case?

Not sure, the ‘source code’ might be embedded in the firmware for the LoPy.

Did you ask Pycom, they ought to know ?

sure I will post in the forum at pycom as well.

coding_rate can take the following values: LoRa.CODING_4_5 , LoRa.CODING_4_6 , LoRa.CODING_4_7 or LoRa.CODING_4_8

From: https://docs.pycom.io/firmwareapi/pycom/network/lora.html

1 Like

The pycom firmware sources can be found on github.

2 Likes