Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: libmDot-mbed5 DOGS102 ISL29011 MMA845x MPL3115A2 NCP5623B X_NUCLEO_IKS01A1 Senet_Packet
Fork of MTDOT-UDKDemo_Senet by
Diff: main.cpp
- Revision:
- 24:6f78c00a9e9c
- Parent:
- 23:dd1685057812
- Child:
- 25:a5860d250e79
--- a/main.cpp Thu Aug 25 14:40:55 2016 +0000
+++ b/main.cpp Thu Aug 25 15:43:20 2016 +0000
@@ -33,6 +33,11 @@
#include "mbed.h"
#include "senet_packet.h"
+#if !defined(MTDOT_EVB) && !defined(MTDOT_UDK)
+#define MTDOT_UDK
+#define REFLECT_FAST_TX
+#endif
+
// EVB Sensors
#ifdef MTDOT_EVB
@@ -133,8 +138,13 @@
/*
* LoRaWAN Configuration
*/
+
+ // Senet Developer Portal Application EUI
static uint8_t app_id[8] = {0x00,0x25,0x0C,0x00,0x00,0x01,0x00,0x01};
+
+// Get Application Key from Senet Developer Portal Device Edit page
static uint8_t app_key[16] = {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,0x0E,0x0F};
+
static std::vector<uint8_t> config_app_id(app_id,app_id+sizeof(app_id)/sizeof(uint8_t));
static std::vector<uint8_t> config_app_key(app_key,app_key+sizeof(app_key)/sizeof(uint8_t));
static uint8_t config_frequency_sub_band = 0;
