Example application to connect the DISCO_F746NG board to thethings.iO

Dependencies:   BSP_DISCO_F746NG F7_Ethernet LCD_DISCO_F746NG NetworkAPI TS_DISCO_F746NG ThethingsiO_DISCO_F746NG mbed-dev mbed-rtos

Fork of TCP_Client_Example by Roy van Dam

Revision:
15:2bfdb6eab519
Parent:
13:385d1df93acc
--- a/main.cpp	Tue Sep 06 08:54:46 2016 +0000
+++ b/main.cpp	Tue Sep 06 08:58:10 2016 +0000
@@ -2,6 +2,8 @@
 #include "LCD_DISCO_F746NG.h"
 #include "ThethingsiO_DISCO_F746NG.h"
 
+#define TOKEN "YOUR THING TOKEN"
+
 int result;
 
 LCD_DISCO_F746NG lcd;
@@ -12,7 +14,7 @@
 
 int main()
 {
-    ThethingsiO_DISCO_F746NG thethings = ThethingsiO_DISCO_F746NG::ThethingsiO_DISCO_F746NG("HQ0dPZ1MGCbhE6gGtZMk7w8s80Dtjf0VtiWKghbTYSw");
+    ThethingsiO_DISCO_F746NG thethings = ThethingsiO_DISCO_F746NG::ThethingsiO_DISCO_F746NG(TOKEN);
     //printf("IP Address is %s\n\r", interface.getIPAddress());
     TS_StateTypeDef TS_State;
     uint16_t x, y, x_ant, y_ant;