I’m trying to set up an application of Raspberry Pi’s to create an access point. These will be portable devices that will be connected to by multiple ESP8266 devices as I walk around the building. The ESP8266 devices will connect to the access point and send data over MQTT to a broker running on the same RPi that is creating the AP. So far I have managed to use the post [Turn an RPi into an AP] (https://www.balena.io/blog/turn-a-raspberry-pi-into-a-wi-fi-access-point-or-repeater/) to create the AP, and I’m using a node-red container to create the broker and handle messages. This appears to be working.
The issue I’m having is that I want to use the large external USB antenna to create the AP, and the built-in antenna will be used to connect to my Wifi network (once in a blue moon, to install updates). I have run the ifconfig command and it appears that they are connecting the opposite way…
I will also need to make sure this is an application-wide setup as I don’t want to have to change network settings on every device I create. I will also need to ensure that the AP’s IP address is always the same - even for different devices in the same application so that the ESP’s will always connect.
Can someone point me in the right direction?