Gentlemen, here are some test results:
Test 1: Keeping the sensor code in the main code and just plugging off all sensors from the board but leaving the power supply on for the sensors.
Result: The re-joins keep happening.
Test 2: Removing the entire sensor code, just sending some dummy values and using an LED as the indicator for the enable pin.
Result: Runs smoothly. The dummy values keep coming every minute, no re-joins at all, and I’m running it for 20 minutes already.
What will I do next?
- Keep the dummy circuit and payload, just add the sensor code back in. → Goal: Finding out if the sensor code causes the issues.
- Add sensors back in individually, and only have the “active” sensor plugged to the breadboard. → Goal: Finding out if a sensor is causing the re-joins.
Will update this reply with my findings.
By the way, once the custom PCB our university has ordered arrives, the communication will be done via a LORA RA-01H(SX1276) chip and an ESP32-S3-WROOM-1 … so if anyone has a good code for sending data to TTN with that, I’d be more than delighted to try that.
Update 1: The temperature sensor (GPIO7) is not the one causing problems (neither is its code).
Update 2: With the pH sensor (GPIO6), I got one re-join in ten minutes. That one is causing problems.
Update 3: The TDS sensor (GPIO5) sent for 8 minutes before re-joining again.