Skip to content

Commit fd45546

Browse files
committed
Document Protobuf JSON mapping for events.
1 parent 0112777 commit fd45546

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/content/payloads/commands.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ integrating with the LoRa Gateway Bridge. Depending the `marshaler` configuratio
1414
these must be sent as JSON or [Protobuf](https://developers.google.com/protocol-buffers/).
1515
For the Protobuf definitions, please refer to [gw.proto](https://github.com/brocaar/loraserver/blob/master/api/gw/gw.proto).
1616

17-
1817
* The Protocol Buffers [JSON Mapping](https://developers.google.com/protocol-buffers/docs/proto3#json)
1918
defines that bytes must be encoded as base64 strings. This also affects the `gatewayID` field.
2019
When re-encoding this filed to HEX encoding, you will find the expected gateway ID string.

docs/content/payloads/events.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ integration. Depending the `marshaler` configuration, these are sent as JSON or
1414
[Protobuf](https://developers.google.com/protocol-buffers/). For the Protobuf
1515
definitions, please refer to [gw.proto](https://github.com/brocaar/loraserver/blob/master/api/gw/gw.proto).
1616

17+
* The Protocol Buffers [JSON Mapping](https://developers.google.com/protocol-buffers/docs/proto3#json)
18+
defines that bytes must be encoded as base64 strings. This also affects the `gatewayID` field.
19+
When re-encoding this filed to HEX encoding, you will find the expected gateway ID string.
20+
1721
## `stats` - gateway statistics
1822

1923
Statistics reported by the gateway.

0 commit comments

Comments
 (0)