I have been working for the last few days trying to get this board to compile a program using the LoRa radio. I want to use it as a simple point to point LoRa radio TX and the second one as the RX. No LoRaWAN needed. I can get the board to compile programs that do not use the radio but no success with the radio. I went thru the tutorial for the Gateway thinking if I got it to compile then getting the much simplier point to point should be easy. I worked thru all the debugging of the ESP_sc_gway, with the complex changes to the Json from 5 to 6 and then after 5 minutes of compiling I get this results:
"exit status 1
Error compiling for board SparkFun LoRa Gateway 1-Channel."
And if I try to compile a simple LoRa point to point I get the exact same results. ( I only copied the last lines of the compiler as it is pages and pages long.)
If anyone can point me in a direction I should further investigate or has some further questions or answers I could sure use the help. I would love to find some actual code that someone is using, that works on this particular device, so I can test it I would much appreciate where I can get it.
HI… know the feeling. I started off with version 5 as referenced in the hookup guide and it took “some time” to get this going. The library is depending on a lot of other libraries which all need to have the right versions. Then I found out there is a version 6 (still work in progress) on https://github.com/things4u/ESP-1ch-Gateway-v6.0. I rather focus on the latest and got that to work.
You’ll need to edit the configGway.h, configNode.h and the Loramodem.h.
Somewhere during the compile (and maybe the second time around is easier as a lot that was compiled and re-used) you should see an error message in red. it is important to capture that. I remember getting Json header errors (due to Arduino Json version) also getting messages about enabled options that I did not want to include and still had to edit out, as well as a large number of forward declarations / prototypes that I needed to define. The pre-processor was not working as I hoped. Feel free to drop me a personal message with more / detailed compile information and the config files. Maybe I can help.
Thank you very much Paul. Last night I managed to get both the TX and RX functions working in my desired point to point project so I am good to go there. I am using the LoRaLIB library and it works and the explanations commented in the various .H and .CPP files were very helpful.
As I have no interest in LoRaWAN I probably will stop working in that arena for now. What is a bit sad is that SF does not do the best job of explaining the use of their devices which they are trying to sell, and from your input concerning new libraries availability, have done nothing to update their tutorial. The whole JSon thing was a real pain and the only explanation was a video that was hard to follow.
The last comment is that the libraries that SF lists in the tutorial, ESP-1CH-GATEWAY-V5.0, is not a valid library as far as Arduino IDE is concerned. I tried to install it in many different ways and the results were always the same, Not Valid. I hope for others that the new library you mentioned works better and installs better
Again thank you for your feedback and I appreciate it and will remember you kind offer to help thru PM’s.