I am doing a project with a lora module and an arduino mega2560 which has more than one hardware serial. After going through the tutorial, I started to figure out a way to use one of the hardware serials on mega2560 instead of these software serials with my lora module. However, I found no way to do so as the official API currently does not support Hardware serial. Then I tried to modify some parts of the original official library, which did make possible to use hardware serials at the end. But the result came out with 2 separate libraries —the original one to use software serial and the modified one to use hardware serial, which is not favorable for my project involving uses of both a mega2560 using hardware serial and a Uno using software serial. It’s very inconvenient for me to frequently switch between two libraries while writing programs for two different boards. I am now requesting an official update to the existing API that adds the functionality to do the initialization with either a Hardware Serial or a Software Serial. I think this can help a lot of your customers who are doing project with lora modules. I have already added some minor modifications to the API : <LINK_TEXT text=“https://github.com/Windows10010/Grove_L … _915MHz_RF”>https://github.com/Windows10010/Grove_LoRa_433MHz_and_915MHz_RF</LINK_TEXT> (The one that can only initialize with a Hardware Serial)
Best Regards,
happy doing your lovely projects!
Billy Liang