Library that implements the CellularInterface using PPP and LWIP on the mbed MCU. May be used on the C027 and C030 (non-N2xx flavour) boards from mbed 5.5 onwards.
Dependents: example-ublox-cellular-interface HelloMQTT example-ublox-cellular-interface_r410M example-ublox-mbed-client
Diff: TESTS/unit_tests/default/main.cpp
- Revision:
- 3:9863dcade75d
- Parent:
- 1:80ec3fccad9e
diff -r 4c533665168c -r 9863dcade75d TESTS/unit_tests/default/main.cpp --- a/TESTS/unit_tests/default/main.cpp Fri Jun 30 13:30:20 2017 +0100 +++ b/TESTS/unit_tests/default/main.cpp Wed Feb 28 17:33:50 2018 +0000 @@ -215,9 +215,11 @@ #endif // Callback in case the connection goes down -void connection_down_cb(nsapi_error_t err) +void connection_down_cb(nsapi_event_t event, intptr_t x) { - connection_has_gone_down = true; + if ((nsapi_connection_status_t) x == NSAPI_STATUS_DISCONNECTED) { + connection_has_gone_down = true; + } } #ifdef MBED_CONF_APP_ECHO_SERVER