wujiangang / ESP8266_IOT_PLATFORM

A demo that should be run with ESP8266 RTOS SDK
http://bbs.espressif.com
Other
239 stars 122 forks source link

Where in source code the Wifi is activated #15

Open ThierryC49 opened 5 years ago

ThierryC49 commented 5 years ago

Good evening,

I'm using your source code with some modification for my specific application, I whould like to switch OFF wifi some time to save power, but I don't see where the first connexion is done in code, I'm using only HTTPD server

I only this code in user_init()

#if HTTPD_SERVER
    /*Initialize DNS server for captive portal*/
    captdnsInit();
    /*Initialize espfs containing static webpages*/
    espFsInit((void*)(webpages_espfs_start));
    /*Initialize webserver*/
    httpdInit(builtInUrls, 80);
#endif

Could you please help me?

Thanks

THierry,

ThierryC49 commented 5 years ago

I fact I understand why I don't found where the connexion was not fount in my code : the module was in autoconnect then the connexion is done by the espressif lib by reading internal configuration.