Skip to content

Commit d957c89

Browse files
committed
Updated TheThingsNode documentation
1 parent 54b4b43 commit d957c89

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/TheThingsMessage.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# API Reference
22

3-
## Class: TheThingsMessage
3+
## Class: `TheThingsMessage`
44
The `TheThingsMessage` class provides structs for sensor and application data you can encode and decode as bytes.
55

66
```c
77
#include <TheThingsMessage.h>
88
```
99

10-
## Type: devicedata_t
10+
## Type: `devicedata_t`
1111

1212
Create a struct of this type using `api_DeviceData_init_default` as defaults.
1313

@@ -41,7 +41,8 @@ You can also add other analog readings.
4141

4242
> **TODO:** Document how this works and include in example.
4343
44-
## Method: encodeDeviceData
44+
## Method: `encodeDeviceData`
45+
4546
Encode the message you want to send.
4647

4748
```c
@@ -60,7 +61,8 @@ size_t size;
6061
TheThingsMessage::encodeDeviceData(&data, &buffer, &size);
6162
```
6263

63-
## Method: decodeAppData
64+
## Method: `decodeAppData`
65+
6466
Decode the message you received.
6567

6668
```c

0 commit comments

Comments
 (0)