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
Revision 15:2bfdb6eab519, committed 2016-09-06
- Comitter:
- charlyo
- Date:
- Tue Sep 06 08:58:10 2016 +0000
- Parent:
- 14:6938238d02e8
- Commit message:
- updated token usage
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6938238d02e8 -r 2bfdb6eab519 main.cpp --- 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;