1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

Merge pull request #11370 from aabadie/pr/pkg/semtech-loramac-doc-update

pkg/semtech-loramac: improve and cleanup doxygen doc
This commit is contained in:
Francisco 2019-04-18 00:21:18 -07:00 committed by GitHub
commit 98ed4636d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,11 @@
*
* /* 4. send some data */
* char *message = "This is RIOT";
* semtech_loramac_send(&loramac, (uint8_t *)message, strlen(message));
* if (semtech_loramac_send(&loramac,
* (uint8_t *)message, strlen(message)) != SEMTECH_LORAMAC_TX_OK) {
printf("Cannot send message '%s'\n", message);
* return 1;
* }
*
* /* 5. wait for any potentially received data */
* if (semtech_loramac_recv(&loramac) == SEMTECH_LORAMAC_DATA_RECEIVED) {
@ -109,5 +113,5 @@
*
* The library is using the BSD 3-clause license.
*
* @see github.com/Lora-net/LoRaMac-node
*/
* @see https://github.com/Lora-net/LoRaMac-node
*/