ESP8266 SHT21 sensor
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.

config.h 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * config.h
  3. *
  4. * Configuration options for ESP-Weather.
  5. *
  6. * ----------------------------------------------------------------------------
  7. * "THE BEER-WARE LICENSE" (Revision 42):
  8. * <xythobuz@xythobuz.de> & <ghost-ghost@web.de> wrote this file. As long as
  9. * you retain this notice you can do whatever you want with this stuff. If we
  10. * meet some day, and you think this stuff is worth it, you can buy us a beer
  11. * in return. Thomas Buck & Christian Högerle
  12. * ----------------------------------------------------------------------------
  13. */
  14. #ifndef __CONFIG_H__
  15. #define __CONFIG_H__
  16. #define WEB_PORT 80
  17. #define BROADCAST_PORT 2390
  18. #define WEBSOCKET_PORT 2391
  19. #define NTP_PORT_FROM 2392
  20. #define NTP_PORT_TO 123
  21. // WiFi Credentials for the captive config portal AP
  22. #define DEFAULT_SSID "ESP-Weather"
  23. #define DEFAULT_PASS "testtest"
  24. #define MAX_BROADCAST_WAIT_TIME 550
  25. #define NTP_RETRY_TIMEOUT 2500
  26. #define NTP_SERVER_NAME "time.nist.gov"
  27. #define NTP_PACKET_SIZE 48
  28. #define UDP_PACKET_BUFFER_SIZE 25
  29. #define DEBUG_BAUDRATE 115200
  30. // Size of EEPROM for history storage.
  31. // 4096 should be ok, but too large values cause system crashes!
  32. #define EEPROM_SIZE 512
  33. // Broadcast Identifier. Change this when the protocol changes!
  34. #define UDP_PING_CONTENTS "pingESP8266v0.1"
  35. #define UDP_ECHO_CONTENTS "echoESP8266v0.1"
  36. #endif // __CONFIG_H__