Skip to content

lorawan interface connect method should return LORAWAN_CONNECT_IN_PROCESS when connnecting  #7230

Closed
@garycolecd

Description

@garycolecd

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions