diff --git a/pkg/semtech-loramac/doc.txt b/pkg/semtech-loramac/doc.txt index 074cc74496..0c4075cf03 100644 --- a/pkg/semtech-loramac/doc.txt +++ b/pkg/semtech-loramac/doc.txt @@ -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) {