Skip to content

Commit

Permalink
fixup! doc: Clarify JavaScript payload formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
johanstokking committed Aug 29, 2022
1 parent 01c7748 commit 254fca2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ function encodeDownlink(input) {
return {
bytes: [1, 2, 3], // FRMPayload (byte array)
fPort: 1,
warnings: ["warning 1", "warning 2"],
errors: ["error 1", "error 2"]
warnings: ["warning 1", "warning 2"], // optional
errors: ["error 1", "error 2"] // optional (if set, the message is dropped)
}
}

Expand All @@ -39,8 +39,8 @@ function decodeDownlink(input) {
data: {
field: "value"
},
warnings: ["warning 1", "warning 2"],
errors: ["error 1", "error 2"]
warnings: ["warning 1", "warning 2"], // optional
errors: ["error 1", "error 2"] // optional (if set, the message is dropped)
}
}
```
Expand Down

0 comments on commit 254fca2

Please sign in to comment.