![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
grove stream updated JPA 01/09
Dependencies: F7_Ethernet mbed MbedJSONValue LCD_DISCO_F746NG mbed-rtos BSP_DISCO_F746NG CANMsg NetworkAPI SDFileSystem_Warning_Fixed GroveStreamsmodified LcdDiscoF746NgTracer JSON
main.h@0:48863a0964f5, 2020-08-31 (annotated)
- Committer:
- 38domo
- Date:
- Mon Aug 31 19:19:48 2020 +0000
- Revision:
- 0:48863a0964f5
grove stream upated 31/08
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
38domo | 0:48863a0964f5 | 1 | #ifndef __MAIN_H |
38domo | 0:48863a0964f5 | 2 | #define __MAIN_H |
38domo | 0:48863a0964f5 | 3 | |
38domo | 0:48863a0964f5 | 4 | #ifdef __cplusplus |
38domo | 0:48863a0964f5 | 5 | extern "C" { |
38domo | 0:48863a0964f5 | 6 | #endif |
38domo | 0:48863a0964f5 | 7 | |
38domo | 0:48863a0964f5 | 8 | #include "GroveStreams.h" |
38domo | 0:48863a0964f5 | 9 | #include "mbed.h" |
38domo | 0:48863a0964f5 | 10 | |
38domo | 0:48863a0964f5 | 11 | // GroveStreams Settings |
38domo | 0:48863a0964f5 | 12 | const char gsApiKey[] = "YOUR_SECRET_API_KEY_HERE"; //Change This!!! |
38domo | 0:48863a0964f5 | 13 | const char gsCompName[] = "STM32F746+Discovery"; //Optionally change. Set this to give your component a name when it initially registers. Encode special chars such as spaces. |
38domo | 0:48863a0964f5 | 14 | |
38domo | 0:48863a0964f5 | 15 | const char gsCompTmplId[] = ""; //Optional. Tells GS what template to use when the feed initially arrives and a new component needs to be created. |
38domo | 0:48863a0964f5 | 16 | |
38domo | 0:48863a0964f5 | 17 | ////GroveStreams groveStreams(gsApiKey, &lcd); |
38domo | 0:48863a0964f5 | 18 | GroveStreams groveStreams(gsApiKey); |
38domo | 0:48863a0964f5 | 19 | |
38domo | 0:48863a0964f5 | 20 | const char* myMac = groveStreams.getMACAddress(); |
38domo | 0:48863a0964f5 | 21 | |
38domo | 0:48863a0964f5 | 22 | time_t seconds = time(NULL); |
38domo | 0:48863a0964f5 | 23 | |
38domo | 0:48863a0964f5 | 24 | |
38domo | 0:48863a0964f5 | 25 | #ifdef __cplusplus |
38domo | 0:48863a0964f5 | 26 | } |
38domo | 0:48863a0964f5 | 27 | #endif |
38domo | 0:48863a0964f5 | 28 | #endif |