Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
87d322cc
Commit
87d322cc
authored
7 years ago
by
Alexandre Abadie
Browse files
Options
Downloads
Patches
Plain Diff
pkg/semtech-loramac: improve package documentation
parent
de6c4831
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/semtech-loramac/doc.txt
+10
-9
10 additions, 9 deletions
pkg/semtech-loramac/doc.txt
with
10 additions
and
9 deletions
pkg/semtech-loramac/doc.txt
+
10
−
9
View file @
87d322cc
...
...
@@ -53,14 +53,14 @@
* sx127x_t sx127x; /* SX1272/6 device descriptor */
* /* define the required keys for OTAA, e.g over-the-air activation (the
* null arrays need to be updated with valid LoRa values) */
* static uint8_t deveui[LORAMAC_DEVEUI_LEN] = { 0x00, 0x00, 0x00, 0x00, \
* 0x00, 0x00, 0x00, 0x00 }
* static uint8_t appeui[LORAMAC_APPEUI_LEN] = { 0x00, 0x00, 0x00, 0x00, \
* 0x00, 0x00, 0x00, 0x00 }
* static uint8_t app
eui
[LORAMAC_APPKEY_LEN] = { 0x00, 0x00, 0x00, 0x00, \
* 0x00, 0x00, 0x00, 0x00, \
* 0x00, 0x00, 0x00, 0x00, \
* 0x00, 0x00, 0x00, 0x00 }
* static
const
uint8_t deveui[LORAMAC_DEVEUI_LEN] = { 0x00, 0x00, 0x00, 0x00, \
*
0x00, 0x00, 0x00, 0x00 }
;
* static
const
uint8_t appeui[LORAMAC_APPEUI_LEN] = { 0x00, 0x00, 0x00, 0x00, \
*
0x00, 0x00, 0x00, 0x00 }
;
* static
const
uint8_t app
key
[LORAMAC_APPKEY_LEN] = { 0x00, 0x00, 0x00, 0x00, \
*
0x00, 0x00, 0x00, 0x00, \
*
0x00, 0x00, 0x00, 0x00, \
*
0x00, 0x00, 0x00, 0x00 }
;
* ```
*
* Now in the `main` function:
...
...
@@ -92,9 +92,10 @@
*
* /* 5. send some data using confirmable mode on port 10 and assuming no
* data is received */
* char *message = "This is RIOT";
* semtech_loramac_rx_data_t rx_data;
* semtech_loramac_send(LORAMAC_TX_CNF, 10,
(uint8_t *)
"This is RIOT", 13
, &rx_data);
(uint8_t *)
message, strlen(message)
, &rx_data);
* }
* ```
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment