Chat freely about anything...

User avatar
By alonewolfx2
#5742 How can i configure softap in rtos?i didnt make it. i am giving always fatal exception(28). i tried this code
Code: Select allstruct 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 allchar 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
User avatar
By pvvx
#5757
alonewolfx2 wrote:How can i configure softap in rtos?i didnt make it. i am giving always fatal exception(28). i tried this code
Code: Select allstruct 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 allchar 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

Set correct IP addreses. In sample IP = bad.
Attachments
(1.88 KiB) Downloaded 268 times
User avatar
By alonewolfx2
#5774 it doesnt change anything. its crashing in this line
Code: Select all wifi_softap_set_config(&config);