ESP8266 SHT21 sensor
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.h 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. // Size of EEPROM for history storage.
  30. // 4096 should be ok, but too large values cause system crashes!
  31. #define EEPROM_SIZE 512
  32. // Broadcast Identifier. Change this when the protocol changes!
  33. #define UDP_PING_CONTENTS "pingESP8266v0.1"
  34. #define UDP_ECHO_CONTENTS "echoESP8266v0.1"
  35. // Using the RawGit.com service to serve the scripts directly from GitHub.
  36. // Consider using cdn.rawgit.com to reduce their server load.
  37. #define HTML_BEGIN "<html><head><title>ESP-Weather</title>\
  38. <script src=\"https://code.jquery.com/jquery-3.1.1.min.js\" integrity=\"sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=\" crossorigin=\"anonymous\"></script>\
  39. <script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js\" integrity=\"sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa\" crossorigin=\"anonymous\"></script>\
  40. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.bundle.min.js\" integrity=\"sha256-RASNMNlmRtIreeznffYMDUxBXcMRjijEaaGF/gxT6vw=\" crossorigin=\"anonymous\"></script>\
  41. <script src=\"https://rawgit.com/xythobuz/ESP-Weather/master/client-script.js\"></script>\
  42. <link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" integrity=\"sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u\" crossorigin=\"anonymous\">\
  43. </head><body><script type=\"text/javascript\">"
  44. #define HTML_END "</script></body></html>"
  45. #endif // __CONFIG_H__