I have a board where I have implemented an ethernet interface with an ESP32. I would like to selectively use one (or the other) interface for interactions with the cloud and other devices on the LAN. For example, I would like to launch a TCP connection on the ethernet port while remaining connected to the cloud on the wifi interface. If I start up my board with no wifi STA configured I can make requests on TCP ports through the ethernet interface. If the wifi STA is configured and I start up my board, mongoose routes all port openings through the wifi interface instead of the ethernet interface and I can’t communicate with my desired client.
Is there a way to force a tcp connection using mg_connect to use a specific interface (ie; ethernet)?