ARMmbed / wifi-ism43362

ISM43362 WiFi driver
17 stars 22 forks source link

Network status API implementation #39

Closed jeromecoutant closed 5 years ago

jeromecoutant commented 5 years ago

This fixes #31

https://os.mbed.com/docs/mbed-os/v5.11/apis/network-status.html

target platform_name test suite test case passed failed result elapsed_time (sec)
DISCO_L475VG_IOT01A-ARM DISCO_L475VG_IOT01A tests-network-interface NETWORKINTERFACE_CONN_DISC_REPEAT 1 0 OK 18.45
DISCO_L475VG_IOT01A-ARM DISCO_L475VG_IOT01A tests-network-interface NETWORKINTERFACE_STATUS 1 0 OK 19.11
DISCO_L475VG_IOT01A-ARM DISCO_L475VG_IOT01A tests-network-interface NETWORKINTERFACE_STATUS_GET 1 0 OK 18.44
DISCO_L475VG_IOT01A-ARM DISCO_L475VG_IOT01A tests-network-interface NETWORKINTERFACE_STATUS_NONBLOCK 1 0 OK 18.52

@SeppoTakalo @screamerbg

jeromecoutant commented 5 years ago

Maybe just need to cover more cases where connection is lost ... (e.g. during call to receive)

I think it's OK with this current implementation: This interface informs you about connection state, not socket state.

SeppoTakalo commented 5 years ago

Does the device do reconnection automatically or should you also add handling for that?