Undersstanding WiFi better

I am wanting to create a simple one to one communication link between two
esp32s that have WiFi chips on them. How do I do this without a router? It seems that there should be a way to do this by simple setting each ESP with its own IP address. What I read talks about access points, web servers, etc. I do not want all of this. Simple a one to one comm link. I would think that I could set each ESP to a user selected IP address and port to listen to and then the other ESP could merely communicate to that ESP knowing its IP address and port to communicate with. Where am I going wrong here?

I have never tried it but ESP NOW may be useful. This article showed up first on a search.

on one 'esp' start softAP. let the other 'esp' connect to the WiFi network created by that softAP.
Then

Thanks guys. After I did my post I did find a youtube video using esp-now. I think this is what I am looking for. My application requires communication between two ESPs without having a router in the area and esp-now seems to do the trick. I have not done this as yet but will very soon. I think communicating using the MAC address is more simple than having the TCP protocol although using TCP I would get error free transmissions.

The only things you need for this are two ESP-microcontrollers

The ESP-microcontrollers are able to be a WiFi-router themselve.

This is what user @Juraj is suggests

ESP- No1 runs in Soft-AP-mode Software-accessPoint-Mode (which is in fact a router)

ESP No 2 runs in station-mode and connects to the ESP No1
This will enable TCP-communication.

If one of the ESPs runs in soft-AP-mode you can even connect your smartphone, tablet or computer to this ESP

Post a overview-description of your project. Then better taylored advice what approach would be well suited can be given.

best regards Stefan

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.