I want to made firmware which is switch AP to station and station to AP mode as per request without reboot device.
So, i have carried out experiments like,
1) AP to station switching:
first boot device in AP mode and after some time switch to station mode. in this case works perfectly. esp8266 successfully convert into station mode.
station to AP switching:
2) boot device in station mode then after some time disconnect station mode and start AP mode. but in this case device crash on wifi_softap_set_config(&config) API.
logs of crash:
dhcp server start:(ip:192.168.4.1,mask:255.255.255.0,gw:192.168.4.1)
add if1
bcn 100
""(stack_size = 0,task handle = 3fff3c60) overflow the heap_size.
Fatal exception (28):
epc1=0x40100a3e
epc2=0x00000000
epc3=0x4010053b
epcvaddr=0x0000000c
But if I commented wifi_softap_set_config(&config) API then device start in AP mode with previously stored configurations.
if any one have idea about this then please guide me for let it work.
regards,
valmik thakar