-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Labels
Description
This is a feature request. See discussion #214.
Add a parameter to the sendBytes() function to override the default retry count of 7 when an acknowledgement is requested.
ttn_response_t sendBytes(const uint8_t *payload, size_t length, port_t port = 1, bool confirm = false, uint8_t sf = 0, uint8_t retries = 7);
Currently the RN2483 will retry 7 times before the blocking call to sendBytes() returns. For high spreading factors this can take a long time. For SF12, 51 byte packets: 30 minutes. Blocking for a long time, doing nothing means a big waste of energy. During this time the MCU could have been in sleep mode.
johanstokking and andrzejtokarski