[solved] Configuring SOFTAP in rtos_sdk
Posted: Fri Dec 26, 2014 10:35 am
How can i configure softap in rtos?i didnt make it. i am giving always fatal exception(28). i tried this code
or
any help is welcome
Code: Select all
struct softap_config config;
char password[64];
wifi_softap_get_config(&config);
memset(config.password, 0, sizeof(config.password));
sprintf(password, "%s", "testSifresi123");
memcpy(config.password, password, strlen(password));
config.authmode = AUTH_WPA_WPA2_PSK;
wifi_softap_set_config(&config);
or
Code: Select all
char temp[64];
int8_t len,passLen;
struct softap_config *apConfig = (struct softap_config *)zalloc(sizeof(struct softap_config));
wifi_softap_get_config(apConfig);
sprintf(apConfig->ssid, "espTestWifi");
len = sprintf(apConfig->ssid, "espTestWifi");
apConfig->ssid_len = len;
passLen = sprintf(apConfig->password, "testSifresi1", 64);
apConfig->channel =11;
apConfig->authmode=3;
wifi_softap_set_config(apConfig);
any help is welcome