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

main.h

Committer:
38domo
Date:
2020-12-30
Branch:
jpa
Revision:
16:f0d946e6da36
Parent:
0:48863a0964f5

File content as of revision 16:f0d946e6da36:

#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
 extern "C" {
#endif

#include "GroveStreams.h"
#include "mbed.h"

// GroveStreams Settings
const char gsApiKey[] = "YOUR_SECRET_API_KEY_HERE";   //Change This!!!
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.

const char gsCompTmplId[] = "";  //Optional. Tells GS what template to use when the feed initially arrives and a new component needs to be created.

////GroveStreams groveStreams(gsApiKey, &lcd);
GroveStreams groveStreams(gsApiKey);

const char* myMac = groveStreams.getMACAddress();

time_t seconds = time(NULL);


#ifdef __cplusplus
}
#endif
#endif