能源管控程序
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.
 
 
 
 
 
 

24 lines
781 B

  1. #ifndef CONFIG_H
  2. #define CONFIG_H
  3. /*
  4. * This example demonstrate how to use asynchronous client & server APIs
  5. * in order to establish tcp socket connections in client server manner.
  6. * server is running (on port 7050) on one ESP, acts as AP, and other clients running on
  7. * remaining ESPs acts as STAs. after connection establishment between server and clients
  8. * there is a simple message transfer in every 2s. clients connect to server via it's host name
  9. * (in this case 'esp_server') with help of DNS service running on server side.
  10. *
  11. * Note: default MSS for ESPAsyncTCP is 536 byte and defualt ACK timeout is 5s.
  12. */
  13. #define SSID "ESP-TEST"
  14. #define PASSWORD "123456789"
  15. #define SERVER_HOST_NAME "esp_server"
  16. #define TCP_PORT 7050
  17. #define DNS_PORT 53
  18. #endif // CONFIG_H