ESP32 / ESP8266 & BME280 / SHT2x sensor with InfluxDB support
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

servers.h 879B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * servers.h
  3. *
  4. * ESP8266 / ESP32 Environmental Sensor
  5. *
  6. * ----------------------------------------------------------------------------
  7. * "THE BEER-WARE LICENSE" (Revision 42):
  8. * <xythobuz@xythobuz.de> wrote this file. As long as you retain this notice
  9. * you can do whatever you want with this stuff. If we meet some day, and you
  10. * think this stuff is worth it, you can buy me a beer in return. Thomas Buck
  11. * ----------------------------------------------------------------------------
  12. */
  13. #ifndef __SERVERS_H__
  14. #define __SERVERS_H__
  15. void initServers(String hostname);
  16. void runServers();
  17. void wifi_send_websocket(String s);
  18. #if defined(ARDUINO_ARCH_ESP8266) || defined(ARDUINO_ARCH_ESP32)
  19. #include "SimpleUpdater.h"
  20. extern UPDATE_WEB_SERVER server;
  21. #elif defined(ARDUINO_ARCH_AVR)
  22. #include <WiFiLink.h>
  23. extern WiFiServer server;
  24. #endif
  25. #endif // __SERVERS_H__