I'm sending audio to an ESP32S3 module over UDP. I'm doing this over a mesh network that uses 2 APs that have the same SSID. The audio is encoded using opus encoding. I'm using the Arduino audio-tools library. When both APs are turned on the ESP32 audio has a lot of glitches as if it's flipping between APs. This happens even if the ESP32 is sitting beside one of the APs and at a distance from the second one. In my code I have the following set.
WiFi.setScanMethod(WIFI_ALL_CHANNEL_SCAN);
WiFi.setSortMethod(WIFI_CONNECT_AP_BY_SIGNAL);
Does anyone know how I can make this work properly in a mesh network.