Comments on: ESP8266 Client-Server Wi-Fi Communication Between Two Boards (NodeMCU) https://randomnerdtutorials.com/esp8266-nodemcu-client-server-wi-fi/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Mon, 17 Mar 2025 12:19:19 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Roberto Fernandez-Rey https://randomnerdtutorials.com/esp8266-nodemcu-client-server-wi-fi/#comment-917587 Thu, 23 May 2024 14:41:08 +0000 https://randomnerdtutorials.com/?p=92586#comment-917587 ERROR_CONNECTION_REFUSED

]]>
By: Jones https://randomnerdtutorials.com/esp8266-nodemcu-client-server-wi-fi/#comment-892353 Sat, 17 Feb 2024 22:24:59 +0000 https://randomnerdtutorials.com/?p=92586#comment-892353 Hi I get the following error at compilation:

error: no matching function for call to ‘HTTPClient::begin(WiFiClient&, const char*&)’
http.begin(client, serverName);

I thought maybe I had old libraries, but just updated to the newest arduino IDE with a fresh install and added all the new libs as you have posted here.

let me know what you think. thanks

]]>
By: Roger https://randomnerdtutorials.com/esp8266-nodemcu-client-server-wi-fi/#comment-887296 Wed, 31 Jan 2024 21:30:30 +0000 https://randomnerdtutorials.com/?p=92586#comment-887296 A project I completed in the past was an automatic doorbell. The client (ESP D1 R2 Mini) is on the porch sensing and the server (ESP01) is inside the house listening. If the client’s ultrasonic sensor (HC-SR04) detects someone on the porch it sends a UDP packet “Sound the Alarm” to the server. The server then plays the tones.

Everything works great, however as an exercise I want to upgrade from UDP to TCP because of the additional benefits of TCP. I thought I would look at this example. However, I have a question. Is it possible to use the TCP protocol in as a stand-alone transport layer much like UDP? Or does TCP always include the additional application, internet, and network access layers? If TCP can be used as a stand-alone transport layer, do you have a tutorial that demonstrates it?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-client-server-wi-fi/#comment-834473 Fri, 12 May 2023 20:49:53 +0000 https://randomnerdtutorials.com/?p=92586#comment-834473 In reply to Chak.

Hi.
Yes.
That would be possible. Unfortunately, at the moment, we don’t have any tutorials about this subject in micropython.
Regards,
Sara

]]>
By: Chak https://randomnerdtutorials.com/esp8266-nodemcu-client-server-wi-fi/#comment-834277 Thu, 11 May 2023 06:00:30 +0000 https://randomnerdtutorials.com/?p=92586#comment-834277 Hi, is there a micropython version for this project? Would it be possible to have communication between a raspberry pi pico W and esp 8266?

Thank you

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-client-server-wi-fi/#comment-826117 Mon, 20 Mar 2023 10:52:32 +0000 https://randomnerdtutorials.com/?p=92586#comment-826117 In reply to Bertus István.

Hi.
This code should be compatible with the Wemos D1 mini.
then, you just need to adjust for the sensor you’re using.
We have this guide to learn how to use the DS18B20:
– DS18B20:https://randomnerdtutorials.com/esp8266-ds18b20-temperature-sensor-web-server-with-arduino-ide/

Unfortunatley, we don’t have any tutorials for the ST7789 oled or LCD for the ESP8266.
Regards,
Sara

]]>
By: Bertus István https://randomnerdtutorials.com/esp8266-nodemcu-client-server-wi-fi/#comment-826100 Mon, 20 Mar 2023 08:50:04 +0000 https://randomnerdtutorials.com/?p=92586#comment-826100 Üdvözlöm Sara! István vagyok.Egy kis segítséget szeretnék kérni. Amit meg akarok valósítani az a következő. Wemos D1 Mini wi-fi AP mód, DS18b20 vagy BMP180 és ST7789 oled. Ez lenne az adó, több is külső belső hőmérséklet, stb. A vevő: Wemos D1 Mini I2C 20×4 LCD. Valamint I2C 16×4 LCD big font és a kijelzése egy tizedesjegyig látható pl:17,5 Celsius. Válaszát előre is köszönöm. Üdv: István

]]>
By: Marty https://randomnerdtutorials.com/esp8266-nodemcu-client-server-wi-fi/#comment-824636 Sat, 11 Mar 2023 00:35:45 +0000 https://randomnerdtutorials.com/?p=92586#comment-824636 In reply to Ryan Peters.

Not sure it’s the same thing you are experiencing but I am of the opinion that after a while the actual wifi connection is lost, I suspect due to weak signal, interference, etc. I hit the reset button on my client device and it reconnects and might remain connected for 12 hour or a week. Mine seems to fail more when it is cold but I have no hard data on this, just “seems” like it.

Do you think you are getting bad readings from the sensors? I built this with three different sensors trying to find the one I thought was most accurate. I do not recall getting bad (zeros) reads from the sensors, only losing the connection like I mentioned. I suppose we could make it more robust by making it verify the connection and reset or reboot automatically but I haven’t done so.

]]>
By: Ryan Peters https://randomnerdtutorials.com/esp8266-nodemcu-client-server-wi-fi/#comment-824331 Thu, 09 Mar 2023 18:05:02 +0000 https://randomnerdtutorials.com/?p=92586#comment-824331 This seems to work well for me for the most part. However, after logging the data for some time, I notice that occasionally I will get zeros for the readings. Not sure why. Anybody have a good way of error checking the data?

]]>
By: Lindsey https://randomnerdtutorials.com/esp8266-nodemcu-client-server-wi-fi/#comment-812797 Wed, 25 Jan 2023 01:35:47 +0000 https://randomnerdtutorials.com/?p=92586#comment-812797 Very much appreciate your turorial. This is my first time with ESP8266 NodeMCU. I did get it to work with a DHT11 and slightly different display. I had to strip all the pressure related code out as DHT11 does not provide pressure. Took a long time but I learned a lot. My solution seems buggy as the client will only receive one set of data and display it before it disconnects. Since the intent of my investment has been met, I’m happy with the result. However, if somone else has this issue let me know. I would like to understand why the client disconnects after one reading. I am very impressed with your work and plan to look at some of your other work and offerings.

]]>