Description
Note: This is just a template, so feel free to use/remove the unnecessary things
Description
- Type: Bug
- Priority: Major
Bug
Target
UBLOX_EVK_ODIN_W2
Toolchain:
GCC_ARM|ARM|IAR
Toolchain version:
mbed-cli version:
(mbed --version
)
0.9.10
meed-os sha:
(git log -n1 --oneline
)
ce9d252 (HEAD -> mbed-os-5.3, origin/master, origin/HEAD) Merge pull request #3409 from jeromecoutant/PR_ST_L1_ASSERT
DAPLink version:
Expected behavior
WiFi should be able to connect with wifi.connect(ssid, passwd);
Actual behavior
It doesn't connect, unless you specify the security mode as well.
Steps to reproduce
Build the mbed-os-example-client and try that.
#3 – seems ESP8266 and ODIN behave differently on the connect. The WiFi example has DIFFERENT connect parameters than mbed client.
Client has this.
#if MBED_CONF_APP_NETWORK_INTERFACE == WIFI
connect_success = wifi.connect(MBED_CONF_APP_WIFI_SSID, MBED_CONF_APP_WIFI_PASSWORD);
network_interface = &wifi;
while, Wifi example has this:
output.printf("\r\nConnecting...\r\n");
int ret = wifi.connect(MBED_CONF_APP_WIFI_SSID, MBED_CONF_APP_WIFI_PASSWORD, NSAPI_SECURITY_WPA_WPA2);
I think the WiFi driver should be able to negotiate the security mode by itself.