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
Code:
405328> no 502_SBC found, reconnect after 1s
405429> reconnect
Statistics: Posted by vaibhav93 — Mon May 16, 2016 4:27 am