WEP connection issue
- Lenguaje dominante
- C++
- Estrellas
- 16.7k
- Forks
- 13.1k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
### Basic Infos
- [x] This issue complies with the [issue POLICY doc](https://github.com/esp8266/Arduino/blob/master/POLICY.md).
- [x] I have read the documentation at [readthedocs](https://arduino-esp8266.readthedocs.io/en/latest) and the issue is not addressed there.
- [x] I have tested that the issue is present in current master branch (aka latest git).
- [x] I have searched the issue tracker for a similar issue.
- [x] If there is a stack dump, I have decoded it.
- [x] I have filled out all fields below.
#### Platform
- Hardware: [ESP-8266 NodeMCU v3]
- Core Version: [latest git hash or date]
- Development Env: [Arduino IDE]
- Operating System: [Ubuntu]
### Settings in IDE
- Module: [Nodemcu]
- Flash Mode: [?]
- Flash Size: [4MB]
- lwip Variant: [?]
- Reset Method: [nodemcu]
- Flash Frequency: [40Mhz]
- CPU Frequency: [80Mhz]
- Upload Using: [SERIAL]
- Upload Speed: [115200]
### Problem Description
I cannot get the ESP8266 module to connect to a WEP SSID. The sketch below is what I am using. The module will try connecting, and then give the following output:
```
WiFi connected
IP address:
169.254.215.189
```
All subsequent attempts also yield a 169.154.X.X address. The module is also not visible in the DHCP leases overview of the AP.
Am I missing something here?
### [MCVE](https://stackoverflow.com/help/mcve) Sketch
```cpp
// Libraries
#include
// WiFi network
const char* ssid = "SSID_NAME";
const char* password = "PASSWORD";
void setup() {
// Enable WEP
WiFi.enableInsecureWEP();
// Start serial
Serial.begin(115200);
delay(10);
// Connecting to a WiFi network
Serial.println();
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {
}
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza con el esquema de MCVE, especialmente WiFi.enableInsecureWEP(), WiFi.begin() y el bucle WL_CONNECTED, y reprodúcelo en la configuración indicada de ESP8266 NodeMCU v3 con un SSID WEP. Rastrea por qué la conexión informa de éxito mientras recibe una dirección 169.254.x.x y está ausente de las concesiones DHCP del AP; se considera terminado cuando se haya identificado la causa y se haya documentado o corregido el comportamiento de conexión resultante.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- cpp
- Área
- embedded-iot, networking
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100