Closed
Description
Description
LoraWANInterface::connect returns LORAWAN_STATUS_OK when idle and entering connecting state. An asynchronous event is sent when connection completes or fails. If the stack is already connected the connect method also returns LORAWAN_STATUS_OK, but does not send an asynchronous event. The application cannot distinguish the two use cases without timing out waiting for the event.
Issue request type
The stack includes the LORAWAN_STATUS_CONNECT_IN_PROGESS result code, but it does not appear to be used in mbed-os-5.9.0. The connect method should return LORAWAN_STATUS_CONNECT_IN_PROGESS when it will notify the application with an event, and return LORAWAN_STATUS_OK when the stack is already connected.
[ ] Question
[X] Enhancement
[ ] Bug
Metadata
Metadata
Assignees
Labels
No labels