#ifndef __ESP12f_H__ #define __ESP12f_H__ #include #include #define SIZEMES 8 #define MASKMES 0xF0 #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 #define STATUS 0xA0 #define AQUAGRA //#define AQUAZOA /* ************************************************************** * Structur ***************************************************************/ typedef struct{ uint8_t Max; uint8_t Pente; uint16_t HeureDem; uint16_t HeureArret; uint8_t Essai; }Sortie; /* ************************************************************** * Variable Connection ***************************************************************/ // Token identification #ifdef AQUAGRA char auth[] = "HX49Gzw7ONpiPKKpdRZL8pIYVMPx7GO9"; //220L #endif #ifdef AQUAZOA char auth[] = "ZxEo9t9IFn2miwSOp10vFvaKd8Imn_UJ"; //70L #endif // Your WiFi credentials. char ssid[] = "Livebox-7C2C"; char pass[] = "566C61F61F9C925C9F3D7D79E6"; /* ************************************************************** * Variable Global ***************************************************************/ Sortie TabSortie[10]; /* ************************************************************** * 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(); void Status(); #endif