Skip to content

Commit

Permalink
fixed esp8266 throw 'Not connected to the internet' exception
Browse files Browse the repository at this point in the history
  • Loading branch information
beanjs committed Jul 21, 2017
1 parent 659c411 commit ca67ee6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/network/esp8266/jswrap_esp8266_network.c
Expand Up @@ -1168,8 +1168,14 @@ void jswrap_ESP8266_wifi_init1() {
DBG("< Wifi init1, phy=%d mode=%d\n", wifi_get_phy_mode(), wifi_get_opmode());
}

/*JSON{
"type":"init",
"generate":"jswrap_ESP8266_wifi_soft_init"
}
// This function is called in soft_init to hook-up the network. This happens from user_main's
// init_done() and also from `reset()` in order to re-hook-up the network.
*/
void jswrap_ESP8266_wifi_soft_init() {
DBGV("> Wifi.soft_init\n");

Expand Down

0 comments on commit ca67ee6

Please sign in to comment.