-->
Page 1 of 1

wifi_get_ip_info() always returns 0

PostPosted: Thu Sep 03, 2015 11:39 pm
by deadmetaphor
Code: Select all...
struct ip_info ipconfig;
wifi_get_ip_info(STATION_IF, &ipconfig)


I am connected to an AP (i.e. station mode) and I can see the assigned IP in the serial console. But, ipconfig.ip (netmask & gw) is always 0. The API returns 'true'.

I am using SDK 1.3.0.

Does anyone see something obvious that I am missing?

Re: wifi_get_ip_info() always returns 0

PostPosted: Fri Sep 04, 2015 4:00 am
by deadmetaphor
I can't figure how to delete the main post.

The problem is something else, because I get the expected behaviour when I use a fresh setup.