File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
# API Reference
2
2
3
- ## Class: TheThingsMessage
3
+ ## Class: ` TheThingsMessage `
4
4
The ` TheThingsMessage ` class provides structs for sensor and application data you can encode and decode as bytes.
5
5
6
6
``` c
7
7
#include < TheThingsMessage.h>
8
8
```
9
9
10
- ## Type: devicedata_t
10
+ ## Type: ` devicedata_t `
11
11
12
12
Create a struct of this type using ` api_DeviceData_init_default ` as defaults.
13
13
@@ -41,7 +41,8 @@ You can also add other analog readings.
41
41
42
42
> ** TODO:** Document how this works and include in example.
43
43
44
- ## Method: encodeDeviceData
44
+ ## Method: ` encodeDeviceData `
45
+
45
46
Encode the message you want to send.
46
47
47
48
``` c
@@ -60,7 +61,8 @@ size_t size;
60
61
TheThingsMessage::encodeDeviceData(&data, &buffer, &size);
61
62
```
62
63
63
- ## Method: decodeAppData
64
+ ## Method: ` decodeAppData `
65
+
64
66
Decode the message you received.
65
67
66
68
``` c
You can’t perform that action at this time.
0 commit comments