| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #ifndef __ESP12f_H__
- #define __ESP12f_H__
- #include <ESP8266WiFi.h>
- #include <BlynkSimpleEsp8266.h>
- #include <WidgetRTC.h>
- #define SIZEMES 8
- #define MASKMES 0XF0
- #define STATUS 0xA0
- #define READACTI 0x10
- #define WRITACTI 0x20
- #define READVENT 0x30
- #define WRITVENT 0x40
- #define ERRORR 0x50
- #define RESERVE2 0x60
- #define DELAYBRA 0x70
- #define SYNCRTC 0x80
- #define ACTIREM 0x01
- #define ACTIECU 0x02
- #define ACTICHA 0x04
- #define ACTIBGE 0x08
- #define ACTIBR1 0x10
- #define ACTIBR2 0x20
- #define ACTIOSM 0x40
- #define ACTINOU 0x80
- /* **************************************************************
- * Structur
- ***************************************************************/
- /* **************************************************************
- * Variable Connection
- ***************************************************************/
- // Token identification
- char auth[] = "qDSPfbEHHMiQxMNFeKZ2_lKwbxD81Yu8";
- // Your WiFi credentials.
- char ssid[] = "Livebox-7C2C";
- char pass[] = "566C61F61F9C925C9F3D7D79E6";
- /* **************************************************************
- * Variable Global
- ***************************************************************/
- //BlynkTimer timerRTC;
- BlynkTimer timerStatus;
- WidgetRTC rtc;
- WidgetLED TechBas(V0);
- WidgetLED TechHau(V1);
- WidgetLED CuveHau(V2);
- WidgetLED Reserve(V3);
- /* **************************************************************
- * Fonction Perso
- ***************************************************************/
- uint8_t uart_send(uint8_t *in, uint8_t nbTr, uint8_t *out); // envoie un message et recoie la reponce
- uint8_t transmit(uint8_t *in, uint8_t nbTr, uint8_t *out); // reesai si probleme dans le message;
- void SyncRTC();
- float convTemp(uint8_t ent);
- float convPH(uint8_t ent);
- int convSalinity(uint8_t ent);
- void Status();
- #endif
|