Hey guys,
I'm trying to send a message through TTN by using a Raspberry Pi 2 Model B with Cooking Hacks bridge and LoRaWAN shield from Libelium.
All looks well and I can access the LoRa module through ArduPi and the LoRaWAN libraries, however when I run my program (Based on https://www.cooking-hacks.com/documentation/tutorials/lorawan-for-arduino-raspberry-pi-waspmote-868-900-915-433-mhz/) it says everything went OK but I can't find the data in the API.
What am I doing wrong? I should see the data here right? http://thethingsnetwork.org/api/v0/nodes/02018200/
Program output:
LoRaWAN example - Module configuration
1. Switch ON OK
2. Reset to factory default values OK
3.1. Set Device EUI OK
3.2. Get Device EUI OK. Device EUI: 0102030405230882
4.1. Set Device address OK
4.2. Get Device address OK. Device address: 02018200
5. Set Network Session Key OK
6. Set Application Session Key OK
7.1. Set Retransmissions for uplink confirmed packet OK
7.2. Get Retransmissions for uplink confirmed packet OK.
TX retries: 7
8. Application key set OK
9. Save configuration OK
Now the LoRaWAN module is ready for
joining networks and send messages.
Please check the next examples...
- Join network OK
- Send Unconfirmed packet OK
- Switch OFF OK
LoRa configuration:
char DEVICE_EUI[] = "0102030405230882";
char DEVICE_ADDR[] = "02018200";
char NWK_SESSION_KEY[] = "2B7E151628AED2A6ABF7158809CF4F3C";
char APP_SESSION_KEY[] = "2B7E151628AED2A6ABF7158809CF4F3C";
char APP_KEY[] = "000102030405060708090A0B0C0D0E0F";
uint8_t PORT = 3;
char data[] = "0102030405060708090A0B0C0D0E0F";