Skip to content

Commit

Permalink
update client
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Dec 11, 2024
1 parent 212cbee commit 4d3ea14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/Client/Client.ino
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// #define HOST "www.google.com"
// #define PORT 80

#define HOST "192.168.125.118"
#define HOST "192.168.125.122"
#define PORT 4000

// 16 slots on esp32 (CONFIG_LWIP_MAX_ACTIVE_TCP)
Expand Down Expand Up @@ -52,7 +52,7 @@ void makeRequest() {
});

client->onData([](void* arg, AsyncClient* client, void* data, size_t len) {
Serial.printf("** data received by client: %" PRIu16 ": len=%u\n", client->localPort(), len);
// Serial.printf("** data received by client: %" PRIu16 ": len=%u\n", client->localPort(), len);
});

client->write("GET / HTTP/1.1\r\nHost: " HOST "\r\nUser-Agent: ESP\r\nConnection: close\r\n\r\n");
Expand Down

0 comments on commit 4d3ea14

Please sign in to comment.