Closed dl9sau closed 2 years ago
I guess there is a { missing at the end of the last line of the corrected code?
I guess there is a { missing at the end of the last line of the corrected code?
Yes. Cut+Paste problem. Because: a new feature I did not mentioned yet: stoping beacon, if kiss client with same call+ssid is connected and sends position reports, we stop sending on our own, until he keeps silent (for beacon max time) or gets disconnected) . That's why my current code part is if (!dont_send_own_position_packets && ((lastTX+nextTX) < millis()) && ((millis()-lastTX) >= 20000L)) { if (gps.location.age() < 2000) { ....
Feature is stable in my development version
I saw a relative high rate of frames sent in between 5s. This is too high for LoRa. 20s is imho a minimum. May be lesser on higher data rates (smaller SF than 12).
In TTGO_T-Beam_LoRa_APRS.ino I added:
After
..this check:
And:
Instead of
this code:
Btw, last line, I think "if ( (lastTX+nextTX) < millis() )" instead of "if ( (lastTX+nextTX) <= millis() )" is correct, because lastTX is equal to millis(), and nextTX is 0, we just have transmitted.