


Launching the server you will see its IP address in the lower row of the OLED. Your router will give IP addresses to your MCUs during the connection. Modifying the messages you will be able to send anything between the two modules. The client triggers the communication asking the server and the server will send an answer. (Don't forget to put your SSID and password into the code before upload the code.) One of the MCUs will be a server and the other will be the client. Only two MCUs (and a PC).īoth MCUs connect to your home WiFi router. Yo can see any HW you need in the picture. After that I will show an easy application using an additional DHT22 sensor and some OLEDs. At first two bare MCU will demonstrate the bare minimum solution of the TCP communication. In the next pages I will share the result with you in two versions. According to the description of the Arduino WiFi library and the WiFi library for ESP8266 I made what I wanted.

I started to mine the internet for ready samples but I didn't find an easy solution for MCU-MCU WiFi communication. So there was not question I will face this topic using ESP modules also. I used wired communications (serial, i2C) and wireless (bluetooth, RF transmitter / receiver and nRF24). In my Arduino projects sometimes I had to send messages between two MCUs. At first I used them (in my previous POI hunter project) as a smarter Arduino, because they have higher clock frequency, more memory and built in "SD card" (SPIFFS). Some months ago I started to experiment ESP8266 based NodeMCU and Wemos boards.
