Skip to content

Commit 2797bc0

Browse files
Merge pull request #153 from TheThingsNetwork/feature/node
Add node class
2 parents 3485cf8 + a97870e commit 2797bc0

22 files changed

+5168
-16
lines changed

.travis.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,28 @@ before_install:
1212
install:
1313
- ln -s $PWD /usr/local/share/arduino/libraries/TheThingsNetwork
1414
- arduino --install-library "DHT sensor library:1.3.0,Adafruit Unified Sensor:1.0.2"
15+
- git clone https://github.com/sparkfun/arduino_boards /tmp/sparkfun
16+
- mv /tmp/sparkfun/sparkfun /usr/local/share/arduino/hardware/sparkfun
1517
before_script:
1618
# Replace placeholders with actual frequency plan (on Mac OS folow -i by '')
1719
- find $PWD/examples -type f -name "*.ino" -exec sed -i 's/REPLACE_ME/TTN_FP_EU868/g' {} +
1820
script:
19-
- arduino --verify --board arduino:avr:leonardo $PWD/examples/ABP/ABP.ino
20-
- arduino --verify --board arduino:avr:leonardo $PWD/examples/DeviceInfo/DeviceInfo.ino
21-
- arduino --verify --board arduino:avr:leonardo $PWD/examples/Message/Receive/Receive.ino
22-
- arduino --verify --board arduino:avr:leonardo $PWD/examples/Message/Send/Send.ino
23-
- arduino --verify --board arduino:avr:leonardo $PWD/examples/PassThrough/PassThrough.ino
24-
- arduino --verify --board arduino:avr:leonardo $PWD/examples/QuickStart/QuickStart.ino
25-
- arduino --verify --board arduino:avr:leonardo $PWD/examples/Receive/Receive.ino
26-
- arduino --verify --board arduino:avr:leonardo $PWD/examples/Send/Send.ino
27-
- arduino --verify --board arduino:avr:leonardo $PWD/examples/Sensors/DHT/DHT.ino
28-
- arduino --verify --board arduino:avr:leonardo $PWD/examples/Sensors/LightSensor/LightSensor.ino
29-
- arduino --verify --board arduino:avr:leonardo $PWD/examples/Workshop/Workshop.ino
30-
- arduino --verify --board arduino:avr:leonardo $PWD/test/TheThingsMessage/TheThingsMessage.ino
31-
- arduino --verify --board arduino:avr:leonardo $PWD/test/TheThingsNetwork/TheThingsNetwork.ino
21+
- test/verify arduino:avr:leonardo examples/ABP/ABP.ino
22+
- test/verify arduino:avr:leonardo examples/DeviceInfo/DeviceInfo.ino
23+
- test/verify arduino:avr:leonardo examples/Message/Receive/Receive.ino
24+
- test/verify arduino:avr:leonardo examples/Message/Send/Send.ino
25+
- test/verify sparkfun:avr:promicro:cpu=8MHzatmega32U4 examples/Node/Node.ino
26+
- test/verify arduino:avr:leonardo examples/PassThrough/PassThrough.ino
27+
- test/verify arduino:avr:leonardo examples/QuickStart/QuickStart.ino
28+
- test/verify arduino:avr:leonardo examples/Receive/Receive.ino
29+
- test/verify arduino:avr:leonardo examples/Send/Send.ino
30+
- test/verify arduino:avr:leonardo examples/Sensors/DHT/DHT.ino
31+
- test/verify arduino:avr:leonardo examples/Sensors/LightSensor/LightSensor.ino
32+
- test/verify arduino:avr:leonardo examples/Workshop/Workshop.ino
33+
- test/verify arduino:avr:leonardo test/TheThingsMessage/TheThingsMessage.ino
34+
- test/verify arduino:avr:leonardo test/TheThingsNetwork/TheThingsNetwork.ino
35+
- test/verify sparkfun:avr:promicro:cpu=8MHzatmega32U4 test/TheThingsNode/TheThingsNode.ino
3236
notifications:
3337
email:
3438
on_success: change
35-
on_failure: change
39+
on_failure: change

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# The Things Network Arduino Library
22
[![Build Status](https://travis-ci.org/TheThingsNetwork/arduino-device-lib.svg?branch=master)](https://travis-ci.org/TheThingsNetwork/arduino-device-lib)
33

4-
This is an [Arduino Library](https://www.arduino.cc/en/Guide/Libraries) for Arduino-compatible devices like [The Things Uno](https://shop.thethingsnetwork.com/index.php/product/the-things-uno/) and [Node](https://shop.thethingsnetwork.com/index.php/product/the-things-node/) to communicate via [The Things Network](https://www.thethingsnetwork.org).
4+
This is an [Arduino Library](https://www.arduino.cc/en/Guide/Libraries) for Arduino devices like [The Things Uno](https://shop.thethingsnetwork.com/index.php/product/the-things-uno/) and [Node](https://shop.thethingsnetwork.com/index.php/product/the-things-node/) to communicate via [The Things Network](https://www.thethingsnetwork.org).
55

66
> At the moment this library requires devices to feature a [Microchip RN2xx3 module](http://www.microchip.com/design-centers/wireless-connectivity/embedded-wireless/lora-technology).
77
@@ -16,6 +16,7 @@ This is an [Arduino Library](https://www.arduino.cc/en/Guide/Libraries) for Ardu
1616
* API References:
1717
* [TheThingsNetwork](docs/TheThingsNetwork.md)
1818
* [TheThingsMessage](docs/TheThingsMessage.md)
19+
* [TheThingsNode](docs/TheThingsNode.md)
1920

2021
## Examples
2122

docs/TheThingsMessage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# API Reference
2-
The `TheThingsMessage` class provides structs for device and application data you can encode and decode as bytes.
32

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

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

0 commit comments

Comments
 (0)