version with updated libs
Dependencies: F7_Ethernet mbed MbedJSONValue LCD_DISCO_F746NG mbed-rtos BSP_DISCO_F746NG CANMsg NetworkAPI SDFileSystem_Warning_Fixed GroveStreamsmodified LcdDiscoF746NgTracer JSON
main.h@17:f3c5ec9ca00f, 2021-01-13 (annotated)
- Committer:
- 38domo
- Date:
- Wed Jan 13 19:52:35 2021 +0000
- Branch:
- jpa
- Revision:
- 17:f3c5ec9ca00f
- Parent:
- 0:48863a0964f5
version 12/01 without ethernet, only tasmota wifi and can
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 | 17:f3c5ec9ca00f | 5 | extern "C" { |
38domo | 17:f3c5ec9ca00f | 6 | #endif |
38domo | 17:f3c5ec9ca00f | 7 | ///#include "GroveStreams.h" |
38domo | 17:f3c5ec9ca00f | 8 | #include "mbed.h" |
38domo | 17:f3c5ec9ca00f | 9 | // GroveStreams Settings |
38domo | 17:f3c5ec9ca00f | 10 | const char gsApiKey[] = "YOUR_SECRET_API_KEY_HERE"; //Change This!!! |
38domo | 17:f3c5ec9ca00f | 11 | 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 | 17:f3c5ec9ca00f | 12 | const char gsCompTmplId[] = ""; //Optional. Tells GS what template to use when the feed initially arrives and a new component needs to be created. |
38domo | 17:f3c5ec9ca00f | 13 | ////GroveStreams groveStreams(gsApiKey, &lcd); |
38domo | 17:f3c5ec9ca00f | 14 | /////////GroveStreams groveStreams(gsApiKey); |
38domo | 17:f3c5ec9ca00f | 15 | ///////////////////////////////const char* myMac = groveStreams.getMACAddress(); |
38domo | 17:f3c5ec9ca00f | 16 | time_t seconds = time(NULL); |
38domo | 17:f3c5ec9ca00f | 17 | #ifdef __cplusplus |
38domo | 17:f3c5ec9ca00f | 18 | } |
38domo | 17:f3c5ec9ca00f | 19 | #endif |
38domo | 0:48863a0964f5 | 20 | #endif |