#include <ESP8266WiFi.h>
#include <ESPAsyncUDP.h>
IPAddress ip_ap(192, 168, 1, 123);
IPAddress gw_ap(192, 168, 1, 1);
IPAddress sn_ap(255, 255, 255, 0);
AsyncUDP udp;
void setup() {
Serial1.begin(921600);
WiFi.softAPConfig(ip_ap, gw_ap, sn_ap);
WiFi.softAP("testtest", "testtest");
}
void loop() {
delay(1000);
udp.broadcastTo("Anyone here?", 2424);
Serial1.println("LOOP");
}