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

User avatar
By alonewolfx2
#7084 I am using like this and it's working an applying immediately until restart. it's changing when i restart. I think its sdk issue. you must set up every restart.
Code: Select allif ((wset.b.st_config) || (wset.b.st_ipinfo)) {
      wifi_station_set_auto_connect(0);
      wifi_station_dhcpc_stop();
      wifi_station_disconnect();
      if ((wset.b.st_config)
            && (!wifi_station_set_config(&wcfg->st.config))) werr.b.st_config = 1;
      if ((wset.b.st_ipinfo)
            && (!wifi_set_ip_info(STATION_IF, &wcfg->st.ipinfo))) werr.b.st_ipinfo = 1;
      wset.b.st_dhcp = 1;
      wset.b.st_autocon = 1;
      wifi_station_connect();
      wifi_station_set_auto_connect(1);
   };
User avatar
By pvvx
#7086
alonewolfx2 wrote:I am using like this and it's working an applying immediately until restart. it's changing when i restart. I think its sdk issue. you must set up every restart.

Made - works. Code Update :) Wifi.c + wifi.h ...
+ wifi_station_connect()
No reboot

Settings is not saved in the flash. This part is not completed yet ... SDK Espressif :evil:
User avatar
By alonewolfx2
#7087 esp giving "00000000 = Bad address!" when cancel validation process(protected area) i think it must say(give) unauthorized attempt am i right?
i have an idea. can we add startup script in html fs like (cron jobs)? for ex: esp looks in fs and execute if found startup.cgi? is it possible?
and i saw "upload image to" section in pvfs.exe. how is working ? i tried but i give "ERROR: Could not contact remote device for upload.
ERROR: Uzak sunucu hata döndürdü: (404) Bulunamadı.(its mean fsupload not found on server)" message
and i saw "os_update_cpu_frequency(160);" in user_main.c. cpu running 160mhz am i right?
User avatar
By pvvx
#7089
alonewolfx2 wrote:i have an idea. can we add startup script in html fs like (cron jobs)? for ex: esp looks in fs and execute if found startup.cgi? is it possible?

Yes - it provided... First - HTTP write flash, ...
First all Hardware, then scripts, configs, optimization...

Execution of the client side JAVA + HTML, which allows a choice - can download on disk and binaries for the execution of the CPU in RAM, as libraries, overlay, dll... :)