1
0
mirror of https://github.com/sandeepmistry/arduino-LoRa.git synced 2025-09-06 01:43:59 +03:00

non blocking functions added (#62)

This commit is contained in:
Samuel Lang
2018-08-19 16:34:32 +02:00
committed by Sandeep Mistry
parent 07bfead143
commit 9d2a8c9c82
5 changed files with 72 additions and 10 deletions

7
API.md
View File

@@ -82,7 +82,7 @@ LoRa.beginPacket(implicitHeader);
* `implicitHeader` - (optional) `true` enables implicit header mode, `false` enables explicit header mode (default)
Returns `1` on success, `0` on failure.
Returns `1` if radio is ready to transmit, `0` if busy or on failure.
### Writing
@@ -109,8 +109,11 @@ Returns the number of bytes written.
End the sequence of sending a packet.
```arduino
LoRa.endPacket()
LoRa.endPacket();
LoRa.endPacket(async);
```
* `async` - (optional) `true` enables non-blocking mode, `false` waits for transmission to be completed (default)
Returns `1` on success, `0` on failure.