I have been having a massive headache trying to get TheThingsNetwork.h (https://github.com/TheThingsNetwork/arduino-device-lib) working on the ESP32, I really want to use the ESP32 for my project.
When I attempt to get this up and running on my esp32, it will crash, and reboot, I have attempted to use the ESP Exception Decoder, but it isn't working, or I am not entering the correct info.
I have found another library (https://github.com/jpmeijers/RN2483-Arduino-Library) that does at very least get a boot, but has a restriction of 11 bytes that may be sent
Here is the most simple example I have tried:
- #include <TheThingsNetwork.h>
- #define loraSerial Serial2
- #define debugSerial Serial
- // Replace REPLACE_ME with TTN_FP_EU868 or TTN_FP_US915
- #define freqPlan TTN_FP_US915
- TheThingsNetwork ttn(loraSerial, debugSerial, freqPlan);
- void setup()
- {
- loraSerial.begin(57600);
- debugSerial.begin(9600);
- }
- void loop()
- {
- debugSerial.println("Device Information");
- debugSerial.println();
- ttn.showStatus();
- debugSerial.println();
- debugSerial.println("Use the EUI to register the device for OTAA");
- debugSerial.println("-------------------------------------------");
- debugSerial.println();
- delay(10000);
- }
Any help at all would be greatly appreciated, and if you have a way to get this up and working, I can throw you a few
bucks over paypal or something.
Thanks,
-Kevin