1
0
mirror of https://github.com/sandeepmistry/arduino-LoRa.git synced 2025-09-04 14:42:10 +03:00
Add callback onTxDone
This commit is contained in:
Luiz Henrique Cassettari
2020-01-13 19:01:39 -03:00
parent ed97efd1ed
commit e641518510
4 changed files with 67 additions and 14 deletions

18
API.md
View File

@@ -117,6 +117,24 @@ LoRa.endPacket(async);
Returns `1` on success, `0` on failure.
### Tx Done
**WARNING**: Not supported on the Arduino MKR WAN 1300 board!
### Register callback
Register a callback function for when a packet transmission finish.
```arduino
LoRa.onTxDone(onTxDone);
void onTxDone() {
// ...
}
```
* `onTxDone` - function to call when a packet transmission finish.
## Receiving data
### Parsing packet