I an building a cartracking node using the Arduino LMIC Library.
In the examples the transmission of uplink data is periodically scheduled with the const unsigned TX_INTERVAL value and considering the airtime limits.
If the car is stopped and the gps position is not changed (that much) or the speed is below 5kmh, I don’t want to send data at al.
I noticed suspending the LMIC_setTxData2 in the TTN-APB Example stops the sending of data at all.
What is the right way to suspend the transmission of data?
do_send ends with a comment that the next transmission is scheduled after TX_COMPLETE event. So may-be take a look there? If you do you might notice a line