Page 1 of 1

set dns server is causing crash

Posted: Wed May 09, 2018 1:45 pm
by snahmad75
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");

Re: set dns server is causing crash

Posted: Wed May 09, 2018 1:53 pm
by snahmad75
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.