Closed
Description
Description of defect
CellularContext
does not call NSAPI_STATUS_GLOBAL_UP
callback on successful connect after retry in blocking mode.
If AT_CellularContext::do_connect()
succeeds on first call the callback is called as expected.
If it fails and then succeeds after one or more retry, then the callback is not called.
In the second case AT_CellularContext::connect()
returns true, and connection is established, but the callback is not called.
Target(s) affected by this defect ?
I faced this issue with STM32F730V8
using QUECTEL-BG95-M1
LTE-M modem but likely all targets using cellular context are affected
Toolchain(s) (name and version) displaying this defect ?
GCC_ARM arm-none-eabi 6-2017-q2
What version of Mbed-os are you using (tag or sha) ?
mbed-os-5.14.1
and mbed-os-99.99.99 (91b793c4fd1ad7f02b8db5a2e0d77daf63e5c836)
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
Mbed CLI 1
How is this defect reproduced ?
The issue is reproducible by (with some network provider):
- Use
NetworkInterface
instance for cellular connection - Set blocking mode to
true
- Register event listener for
NetworkInterface
callbacks - Call
NetworkInterface->connect()
connect()
returns true withoutGLOBAL_UP
callback being called (only if it fails at least once in cellular context before success)- network is connected and has traffic but without
NSAPI_STATUS_GLOBAL_UP
being called