Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update API.md #162

Merged
merged 3 commits into from
Jun 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,11 @@ void setup() {
### Send data to LoRaWAN
You need to specify the length of data you want to send and also the message type (unconfirmed or confirmed message). Set `confirm = 0` to send unconfirmed message and `confirm = 1`' to send confirmed message.

For mport, you are free to utilize values between 1-223, it is entirely up to you to choose the values your node and infrastructure software sets or checks for.

#### Syntax
```c
void sendUplink(unsigned char *data, unsigned int len, unsigned char confirm);
void sendUplink(char *data, unsigned int len, unsigned char confirm, unsigned char mport);
```

#### Example
Expand All @@ -319,7 +321,7 @@ void loop() {
// put your main code here, to run repeatedly:
char myStr[] = "Ini data LoRaku";

lora.sendUplink(myStr, strlen(myStr), 0);
lora.sendUplink(myStr, strlen(myStr), 0, 1);
...

}
Expand Down