ESP12F.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #ifndef __ESP12f_H__
  2. #define __ESP12f_H__
  3. #include <ESP8266WiFi.h>
  4. #include <BlynkSimpleEsp8266.h>
  5. #include <WidgetRTC.h>
  6. #define WRITETABHEU 0x00
  7. #define READTABHEU 0x10
  8. #define WRITETABVAL 0x20
  9. #define READTABVAL 0x30
  10. #define READVENT 0x40
  11. #define WRITVENT 0x50
  12. #define WRITEVALESS 0x60
  13. #define STOP 0x70
  14. #define ESSAI 0x80
  15. #define SYNCRTC 0x90
  16. /* **************************************************************
  17. * Structur
  18. ***************************************************************/
  19. typedef struct{
  20. uint8_t Max;
  21. uint8_t Pente;
  22. uint16_t HeureDem;
  23. uint16_t HeureArret;
  24. uint8_t Essai;
  25. }Sortie;
  26. /* **************************************************************
  27. * Variable Connection
  28. ***************************************************************/
  29. // Token identification
  30. char auth[] = "gFZjB9gVdfUf6FyVza7XeURM6nboWLmD";
  31. // Your WiFi credentials.
  32. char ssid[] = "Livebox-7C2C";
  33. char pass[] = "566C61F61F9C925C9F3D7D79E6";
  34. /* **************************************************************
  35. * Variable Global
  36. ***************************************************************/
  37. Sortie TabSortie[10];
  38. BlynkTimer timer;
  39. WidgetRTC rtc;
  40. /* **************************************************************
  41. * Fonction Perso
  42. ***************************************************************/
  43. uint8_t transmit(uint8_t *in, uint8_t nbTr, uint8_t *out);
  44. uint8_t uart_send(uint8_t *in, uint8_t nbTr, uint8_t *out)
  45. void SyncRTC();
  46. #endif