I meet a problem using an ESP8266 in SoftAP mode.
I want to receive UDP packets on the AP size, and send other UDP packets on the station size (after some processing).
Using examples found on the net, I have written a small program, and my ESP-01 now connecs as both a station and an access point, with correct addresses.
But I dont know what to do next: in some programs I have written, I use the "readPacket" and "sendPacket" functions to receive and send UDP packets, but how can I distinguish between both networks? (f.i. send a packet on one network and not the other).
I have tried to duplicate the instanciation of UDP (WiFiUDP udp) but I get an error messages from the IDE.
Could you please help me? Thanks!