Skip to content

Send with ack retry count parameter #217

@jpmeijers

Description

@jpmeijers

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions