ESP8266 Developer Zone The Official ESP8266 Forum 2016-05-18T17:39:41+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2173 2016-05-18T17:39:41+08:00 2016-05-18T17:39:41+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2173&p=6961#p6961 <![CDATA[Re: RTOS SDK 1.4 Can't connect wifi]]>
Sorry that we can not reproduce your problem.
Could you provide your test code for debugging ?
Here is our test code.

Code:

void user_init(void)
{
    printf("SDK version:%s\n", system_get_sdk_version());

    /* need to set opmode before you set config */
    wifi_set_opmode(STATIONAP_MODE);

    struct station_config *config = (struct station_config *)malloc(sizeof(struct station_config));
   bzero(config, sizeof(struct station_config));
        sprintf(config->ssid, SSID);
        sprintf(config->password, PASSWORD);

        /* need to sure that you are in station mode first,
         * otherwise it will be failed. */
        wifi_station_set_config(config);
        free(config);

}

Statistics: Posted by ESP_Faye — Wed May 18, 2016 5:39 pm


]]>
2016-05-16T04:27:42+08:00 2016-05-16T04:27:42+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2173&p=6906#p6906 <![CDATA[RTOS SDK 1.4 Can't connect wifi]]> ESP-01 512KB

Where all seems to work fine in RTOS v1.3, I am not able to connect to wifi in 1.4,

Code:

405328> no 502_SBC found, reconnect after 1s
405429> reconnect

comes repeatedly.
I know the code is correct and bssid is also set to 0 like here http://bbs.espressif.com/viewtopic.php?f=31&t=228

In short, the smart_config example works in 1.3 and doesn't in 1.4

Statistics: Posted by vaibhav93 — Mon May 16, 2016 4:27 am


]]>