#ifndef __ESP12f_H__ #define __ESP12f_H__ #include #include #include #define WRITETABHEU 0x00 #define READTABHEU 0x10 #define WRITETABVAL 0x20 #define READTABVAL 0x30 #define READVENT 0x40 #define WRITVENT 0x50 #define WRITEVALESS 0x60 #define STOP 0x70 #define ESSAI 0x80 #define SYNCRTC 0x90 /* ************************************************************** * Structur ***************************************************************/ typedef struct{ uint8_t Max; uint8_t Pente; uint16_t HeureDem; uint16_t HeureArret; uint8_t Essai; }Sortie; /* ************************************************************** * Variable Connection ***************************************************************/ // Token identification char auth[] = "gFZjB9gVdfUf6FyVza7XeURM6nboWLmD"; // Your WiFi credentials. char ssid[] = "Livebox-7C2C"; char pass[] = "566C61F61F9C925C9F3D7D79E6"; /* ************************************************************** * Variable Global ***************************************************************/ Sortie TabSortie[10]; BlynkTimer timer; WidgetRTC rtc; /* ************************************************************** * Fonction Perso ***************************************************************/ uint8_t transmit(uint8_t *in, uint8_t nbTr, uint8_t *out); uint8_t uart_send(uint8_t *in, uint8_t nbTr, uint8_t *out) void SyncRTC(); #endif