-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Streamlining connect() API with posix like retcodes
For ABP: First call to connect() or connect(params) will return LORAWAN_STATUS_OK and a CONNECTED event will be sent. Any subsequent call will return LORAWAN_STATUS_ALREADY_CONNECTED (posix EISCONN) and no event is generated. FOR OTAA: First call to connect() or connect(params) will return LORAWAN_STATUS_CONNECT_IN_PROGRESS and a CONNECTED event will be sent whenever the JoinAccept is received. If the application calls connect again before receiving the CONNECTED event, LORAWAN_STATUS_BUSY will be returned. After the CONNECTED event is dispatched, any subsequent call to connect() or connect(params) API will be returned with LORWAN_STATUS_ALREADY_CONNECTED. No new parameters are accepted after the first call. The application must disconnect before making a connect() call with new parameters.
- Loading branch information
Hasnain Virk
committed
Jul 10, 2018
1 parent
24db1c8
commit f0844b4
Showing
4 changed files
with
62 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters