hi:
i try use WiFi enterprise API to connect WiFi network. but found some problem.
my environment:
ESP8266 Mercury MW305R+ RADIUS(javascript)
the RADIUS service can get User-Name in Access-Request. but no User-Password.
and when i set RADIUS to ack with Access-Accept. the ESP8266 will failed with REASON_HANDSHAKE_TIMEOUT.
what's authenticator can meet the ESP8266 requirement?
here the code.
void ICACHE_FLASH_ATTR
esp_platform_setEnterprise(void)
{
if (wifi_station_set_enterprise_identity(cloudId, 8) !=0)
{
ESP_DBG("Enterprise set UserName failed\r\n");
}
if (wifi_station_set_enterprise_password(devPassword, 32) != 0)
//if (wifi_station_set_enterprise_new_password(devPassword, 32) != 0)
{
ESP_DBG("Enterprise set password failed\r\n");
}
}
//set no reconnect
wifi_station_set_reconnect_policy(false);
//set station connect AP
os_memcpy(esp8266Stationcfg.ssid, APList[index].ssid, 32);
os_memset(esp8266Stationcfg.password, 0x00, 64);
esp8266Stationcfg.bssid_set = 0;
os_memset(esp8266Stationcfg.bssid, 0x00, 6);
ESP_DBG("set station config: SSID=%s\r\n", esp8266Stationcfg.ssid);
wifi_station_set_config_current(&esp8266Stationcfg);
//set WiFi EnterPrise setting
wifi_station_set_wpa2_enterprise_auth(1);
//wifi_station_clear_cert_key();
//wifi_station_clear_enterprise_ca_cert();
esp_platform_setEnterprise();
//start DHCP client
ESP_DBG("start DHCP client\r\n");
wifi_station_dhcpc_stop();
wifi_station_dhcpc_start();
ESP_DBG("start connecting...\r\n");
wifi_station_disconnect();
wifi_station_connect();
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.