Skip to content

Commit

Permalink
Updated TheThingsNode documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
johanstokking committed Mar 14, 2017
1 parent 54b4b43 commit d957c89
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/TheThingsMessage.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# API Reference

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

```c
#include <TheThingsMessage.h>
```

## Type: devicedata_t
## Type: `devicedata_t`

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

Expand Down Expand Up @@ -41,7 +41,8 @@ You can also add other analog readings.

> **TODO:** Document how this works and include in example.
## Method: encodeDeviceData
## Method: `encodeDeviceData`

Encode the message you want to send.

```c
Expand All @@ -60,7 +61,8 @@ size_t size;
TheThingsMessage::encodeDeviceData(&data, &buffer, &size);
```

## Method: decodeAppData
## Method: `decodeAppData`

Decode the message you received.

```c
Expand Down

0 comments on commit d957c89

Please sign in to comment.