set dns server is causing crash

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

set dns server is causing crash

Postby snahmad75 » Wed May 09, 2018 1:45 pm

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");

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: set dns server is causing crash

Postby snahmad75 » Wed May 09, 2018 1:53 pm

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.

Who is online

Users browsing this forum: No registered users and 103 guests