ESP8266 SHT21 sensor
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

config.h 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __CONFIG_H__
  2. #define __CONFIG_H__
  3. #define WEB_PORT 80
  4. #define BROADCAST_PORT 2390
  5. #define WEBSOCKET_PORT 2391
  6. #define NTP_PORT_FROM 2392
  7. #define NTP_PORT_TO 123
  8. // WiFi Credentials for the captive config portal AP
  9. #define DEFAULT_SSID "ESP-Weather"
  10. #define DEFAULT_PASS "testtest"
  11. #define MAX_BROADCAST_WAIT_TIME 550
  12. #define NTP_RETRY_TIMEOUT 2500
  13. #define NTP_SERVER_NAME "time.nist.gov"
  14. #define NTP_PACKET_SIZE 48
  15. #define UDP_PACKET_BUFFER_SIZE 25
  16. // Size of EEPROM for history storage.
  17. // 4096 should be ok, but too large values cause system crashes!
  18. #define EEPROM_SIZE 512
  19. // Broadcast Identifier. Change this when the protocol changes!
  20. #define UDP_PING_CONTENTS "pingESP8266v0.1"
  21. #define UDP_ECHO_CONTENTS "echoESP8266v0.1"
  22. // Using the RawGit.com service to serve the scripts directly from GitHub.
  23. // Consider using cdn.rawgit.com to reduce their server load.
  24. #define HTML_BEGIN "<html><head><title>ESP-Weather</title>\
  25. <script src=\"https://code.jquery.com/jquery-3.1.1.min.js\" integrity=\"sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=\" crossorigin=\"anonymous\"></script>\
  26. <script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js\" integrity=\"sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa\" crossorigin=\"anonymous\"></script>\
  27. <script src=\"https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.bundle.min.js\" integrity=\"sha256-RASNMNlmRtIreeznffYMDUxBXcMRjijEaaGF/gxT6vw=\" crossorigin=\"anonymous\"></script>\
  28. <script src=\"https://rawgit.com/xythobuz/ESP-Weather/master/client-script.js\"></script>\
  29. <link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" integrity=\"sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u\" crossorigin=\"anonymous\">\
  30. </head><body><script type=\"text/javascript\">"
  31. #define HTML_END "</script></body></html>"
  32. #endif // __CONFIG_H__