I am using C++ WiFI class.
MyWiFiEventHandler *eventHandler = new MyWiFiEventHandler();
wifi = new WiFi();
wifi->setWifiEventHandler(eventHandler);
// below line cause crash.
wifi->addDNSServer("192.168.0.254");
set dns server is causing crash
Re: set dns server is causing crash
Sorry my mistake
I was calling early.
MyWiFiEventHandler *eventHandler = new MyWiFiEventHandler();
wifi = new WiFi();
wifi->setWifiEventHandler(eventHandler);
bool is_connected = wifi->connectAP("...", "...");
wifi->addDNSServer("192.168.0.254");
now better. still cannot ping my device using espressif.local or espressif resolve using my DNS server.
I was calling early.
MyWiFiEventHandler *eventHandler = new MyWiFiEventHandler();
wifi = new WiFi();
wifi->setWifiEventHandler(eventHandler);
bool is_connected = wifi->connectAP("...", "...");
wifi->addDNSServer("192.168.0.254");
now better. still cannot ping my device using espressif.local or espressif resolve using my DNS server.
Who is online
Users browsing this forum: No registered users and 103 guests