updated version with parameters loaded from sdcard

Dependencies:   F7_Ethernet mbed MbedJSONValue LCD_DISCO_F746NG mbed-rtos BSP_DISCO_F746NG CANMsg NetworkAPI SDFileSystem_Warning_Fixed GroveStreamsmodified LcdDiscoF746NgTracer JSON

Committer:
38domo
Date:
Wed Dec 30 17:22:27 2020 +0000
Branch:
jpa
Revision:
16:f0d946e6da36
Parent:
0:48863a0964f5
version with updated libs

Who changed what in which revision?

UserRevisionLine numberNew 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