After reading lots on ESP and trailing through the data sheet it is apparent by default ESP only broadcasts UDP messages through the SoftAp interface. This can be changed by calling a function in the user_interface called: wifi_set_broadcast_if
It seems that what should be able to be set always returns false.
Is this an SDK issue or instancing through the IDE? Version SDK 1.5.4 IDE 1.6.8 Stageing build : 2.2.0-rc1
Example code to set interface:
void Start_UDP()
{
bool IntSet = false;
Udp.begin(localPort); // START UDP SERVER
IntSet = wifi_set_broadcast_if (3); //1:station; 2:soft-AP, 3:station+soft-AP
delay(1000);
if (IntSet)
{
Serial.println("Interface Set....");
}
else
{
Serial.println("Could not Set Interface....");
}
Serial.println("UDP 1 Server Started..");
}