Skip to content

Commit 3485cf8

Browse files
Merge pull request #173 from TheThingsNetwork/docs/sleep
Document sleep
2 parents 072d3d2 + 68144a1 commit 3485cf8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/TheThingsNetwork.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,12 @@ float calculateAirtime(size_t payloadSize);
144144
- `size_t payloadSize`: number of bytes you want to send.
145145
146146
Returns the uplink time of the message in seconds.
147+
148+
## Method: sleep
149+
Sleep the LoRa module for a specified number of milliseconds.
150+
151+
```c
152+
void sleep(unsigned long mseconds);
153+
```
154+
155+
- `unsigned long mseconds`: number of milliseconds to sleep.

0 commit comments

Comments
 (0)