Comments on: ESP32 Client-Server Wi-Fi Communication Between Two Boards https://randomnerdtutorials.com/esp32-client-server-wi-fi/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Sat, 15 Mar 2025 11:24:16 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Kees van de Werken https://randomnerdtutorials.com/esp32-client-server-wi-fi/#comment-1010877 Tue, 25 Feb 2025 11:14:13 +0000 https://randomnerdtutorials.com/?p=92152#comment-1010877 From my compiler i get the folowing error messages in the send ino
C:\Users\keesv\OneDrive\Documenten\Arduino\Wifi_send\Wifi_send.ino: In function ‘void setup()’:
C:\Users\keesv\OneDrive\Documenten\Arduino\Wifi_send\Wifi_send.ino:58:8: error: ‘class WiFiClass’ has no member named ‘softAP’
58 | WiFi.softAP(ssid, password);
| ^~~~~~
C:\Users\keesv\OneDrive\Documenten\Arduino\Wifi_send\Wifi_send.ino:60:23: error: ‘class WiFiClass’ has no member named ‘softAPIP’
60 | IPAddress IP = WiFi.softAPIP();

]]>
By: yona Gy https://randomnerdtutorials.com/esp32-client-server-wi-fi/#comment-976661 Mon, 28 Oct 2024 16:35:26 +0000 https://randomnerdtutorials.com/?p=92152#comment-976661 Still working on the project: I tried to modify the code and generated the code. I created an H file that contains 3 methods, that contains the code from the SETUP and LOOP methods and is used as API. From which the problematic is the “serverBegin”:

bool serverBegin() {
WiFi.softAP(ssid, password);
IPAddress IP = WiFi.softAPIP();
server.on(“/command”, HTTP_GET,
(AsyncWebServerRequest request) { request->send_P(200, “text/plain”, commandGenerator()); });
server.begin(); // Start server
return HIGH;
}

Where “commandGenerator()” is an external method that returns a string of 30 characters.
The errors now are:

ESP32_WIFI.h:49:28: error: expected primary-expression before ‘
‘ token
49 | (AsyncWebServerRequest request) { request->send_P(200, “text/plain”, commandGenerator()); });
ESP32_WIFI.h:49:29: error: ‘request’ was not declared in this scope
49 | (AsyncWebServerRequest *request) { request->send_P(200, “text/plain”, commandGenerator()); });

Both error pointers point to the term “
request” of the “server.on” statement.

I realy need assistance and appreciate it very much.
Regards
Yona

]]>
By: Yona Gy https://randomnerdtutorials.com/esp32-client-server-wi-fi/#comment-975907 Fri, 25 Oct 2024 12:20:51 +0000 https://randomnerdtutorials.com/?p=92152#comment-975907 Dear Rui and Sara;
Thanks for this project’ as well as for all other projects.

I’m trying to implement the project using ESP32C3 on Arduino IDE 2.3.2. I have a problem in the following lines:
server.on(“/command”, HTTP_GET,
[](AsyncWebServerRequest* request) {request->send_P(200, “text/plain”, readCommand().c_str()); });
Where the compiler issues the following errors:
In file included from
E:\Current\Tractor\SWtractorCombined_V1.0\src\ESP32_WIFI\ESP32_WIFI.ino:13:
E:\src\ESP32_WIFI\ESP32_WIFI.h: In lambda function:
E:\Current\Tractor\SWtractorCombined_V1.0\src\ESP32_WIFI\ESP32_WIFI.h:35:51:
error: ‘this’ was not captured for this lambda function 35 | request->send_P(200,
“text/plain”, readCommand().c_str());
| ~~~~~~~~~~~^~
E:\Current\Tractor\SWtractorCombined_V1.0\src\ESP32_WIFI\ESP32_WIFI.h:35:51:
error: cannot call member function ‘String localWifiP::readCommand()’ without object
How can I change the Lambda into simple functions call statement?

Best regards
Yona

]]>
By: Tony https://randomnerdtutorials.com/esp32-client-server-wi-fi/#comment-945492 Mon, 05 Aug 2024 14:22:03 +0000 https://randomnerdtutorials.com/?p=92152#comment-945492 Bonjour Sara, j’ai essayé ce tutoriel et tout fonctionne très bien. Comme tous les autres que j’ai essayé. La question que je me pose sur le principe client serveur est:
Peut-on renvoyer des données de capteurs du client vers le serveur et par quelle méthode.
Merci

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-client-server-wi-fi/#comment-932795 Mon, 01 Jul 2024 10:07:05 +0000 https://randomnerdtutorials.com/?p=92152#comment-932795 In reply to feune karren.

Hi.
I think maybe your display is not the one with the SSD1306 driver. Can you double-check that?
If it doesn’t come with the SSD1306 driver, you’ll need a different library to make it work.
Regards,
Sara

]]>
By: feune karren https://randomnerdtutorials.com/esp32-client-server-wi-fi/#comment-932413 Sun, 30 Jun 2024 18:34:45 +0000 https://randomnerdtutorials.com/?p=92152#comment-932413 Hello thanks for this awesome tutorial. i am encounting some errors when showing the temp, pressure and humidiy on the oled i2c. i used 1.3 inch rather than a 0.91 inch and then parameters doesnt show all. how can i solve it please?

]]>
By: Daniel https://randomnerdtutorials.com/esp32-client-server-wi-fi/#comment-903047 Wed, 03 Apr 2024 19:20:19 +0000 https://randomnerdtutorials.com/?p=92152#comment-903047 Hi Rui and Sara!
Obrigado pelos vários tutoriais disponíveis nos seu canal!
Gostaria de saber se tem como fazer a comunicação entre 2 ESPs usando o roteador. Obrigado

]]>
By: sz https://randomnerdtutorials.com/esp32-client-server-wi-fi/#comment-895621 Thu, 29 Feb 2024 21:22:04 +0000 https://randomnerdtutorials.com/?p=92152#comment-895621 In reply to Sara Santos.

Hello
I am facing the same problem
no nearby wi-fi networks
any suggestion

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-client-server-wi-fi/#comment-881917 Thu, 04 Jan 2024 10:40:29 +0000 https://randomnerdtutorials.com/?p=92152#comment-881917 In reply to Francisco.

Thank you.
Regards,
Sara

]]>
By: Francisco https://randomnerdtutorials.com/esp32-client-server-wi-fi/#comment-881811 Wed, 03 Jan 2024 21:56:43 +0000 https://randomnerdtutorials.com/?p=92152#comment-881811 Dear Rui and Sara;
Thanks again for all your rnd initiatives.
I adapted this project to the BMP180 sensor and works fine.
Happy new year!
Kurro.

]]>