Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By alonewolfx2
#7068
pvvx wrote:
alonewolfx2 wrote:I think github will be good for version numbering and version history, isn't it?
It takes a lot of time ...
I do not mind.
The current codes - to explore the possibilities, experiment. A fully working project - after.

ok. i am trying new codes but wifi settings not working :( i dont know why. i will look code
User avatar
By pvvx
#7075
alonewolfx2 wrote:ok. i am trying new codes but wifi settings not working :( i dont know why. i will look code

else if(!os_memcmp((void*)cstr, "save", 4)) { if(val) wifi_save_fcfg(); }
else if(!os_memcmp((void*)cstr, "read", 4)) { if(val) wifi_read_fcfg(); }
:)
Update
User avatar
By alonewolfx2
#7079
pvvx wrote:
alonewolfx2 wrote:ok. i am trying new codes but wifi settings not working :( i dont know why. i will look code

else if(!os_memcmp((void*)cstr, "save", 4)) { if(val) wifi_save_fcfg(); }
else if(!os_memcmp((void*)cstr, "read", 4)) { if(val) wifi_read_fcfg(); }
:)
Update

it seems working except sta ip configuration. sta ip config not saving in flash right? dhcp hanging every restart and static sta ip becoming dhcp's ip :)
User avatar
By pvvx
#7082
alonewolfx2 wrote:it seems working except sta ip configuration. sta ip config not saving in flash right? dhcp hanging every restart and static sta ip becoming dhcp's ip :)

wifi.c:
Code: Select all   if ((wset.b.st_config) || (wset.b.st_ipinfo)) {
      wifi_station_set_auto_connect(0);
      wifi_station_dhcpc_stop();
      wifi_station_disconnect();
....
         wifi_station_dhcpc_start()
      or
         wifi_station_dhcpc_stop()
...
           wifi_station_set_auto_connect(wcfg->st.auto_connect)

Otherwise, do not change this wifi.st... settings
wifi_station_connect () ??
While solved "reboot" AP http://192.168.4.1/?sys.restart=12345 :)