Raspi 4 to Esp32 connection via hotspot
hello, I'm new to this. So me and my friends are planning to purchase two esp32 for a project. Our plan to connect the two esp32 to the hotspot of our Raspberry Pi 4 for the Pi to control the esps and to pass data around. Is our plan possible? We are on a strict budget so we want to make sure that our plan is possible before purchasing.
1 Reply
Yes, the plan is feasible. However, keep in mind that wifi range will be limited, so be mindful of the distance between the ESPs and the Pi.
To set up a hotspot on the Pi, you can use hostapd or even NetworkManager. Once everything is connected, you will need a protocol for communication, like http, mqtt, etc. The choice will depend on your needs. The ESPs can connect to the Pi's hotspot normally, but note that the hotspot won’t have an internet connection (though this isn’t necessary for data exchange between the boards).