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