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
Diff: main.h
- Revision:
- 0:48863a0964f5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.h Mon Aug 31 19:19:48 2020 +0000 @@ -0,0 +1,28 @@ +#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