After connection to the router i used the following code to know my ip address. So for this i did
struct ip_info ipconfig;
wifi_get_ip_info(STATION_IF, &ipconfig);
os_printf("\n self ip : %d.%d.%d.%d", IP2STR(ipconfig.ip.addr));
But after executing the last line i get
Fatal exception 28(LoadProhibitedCause):
epc1=0x40215d17, epc2=0x00000000, epc3=0x00000000, excvaddr=0x0e02a8c2, depc=0x00000000
Not sure why i get this.
I understand from the exception that i am loading from a prohibited address but what is the right way to do it ?