Skip to content

Commit f5f80f8

Browse files
Teemu Kultala0xc0170
authored andcommitted
types change
1 parent 1b18153 commit f5f80f8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

features/netsocket/nsapi_types.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,19 @@ enum nsapi_error {
6868
NSAPI_STATUS_GLOBAL_UP = 1, /*!< global IP address set */
6969
NSAPI_STATUS_DISCONNECTED = 2, /*!< no connection to network */
7070
NSAPI_STATUS_CONNECTING = 3, /*!< connecting to network */
71-
NSAPI_STATUS_ERROR_UNSUPPORTED = -3001
71+
NSAPI_STATUS_ERROR_UNSUPPORTED = NSAPI_ERROR_UNSUPPORTED
7272
} nsapi_connection_status_t;
7373

7474

75-
/** Enum of event types, this is always accompanied with a parameter of type nsapi_connection_status_t
75+
/** Enum of event types
76+
*
77+
* Event callbacks are accompanied with an event-dependent parameter passed as an intptr_t.
7678
*
7779
* @enum nsapi_event
7880
*/
7981
typedef enum nsapi_event {
80-
NSAPI_EVENT_CONNECTION_STATUS_CHANGE = 0 /*!< network connection status has changed */
82+
NSAPI_EVENT_CONNECTION_STATUS_CHANGE = 0, /*!< network connection status has changed, the parameter = new status (nsapi_connection_status_t) */
83+
NSAPI_EVENT_SOME_FUTURE_EVENT = 1 /*!< something else has happened, the parameter = time in milliseconds */
8184
} nsapi_event_t;
8285

8386

0 commit comments

Comments
 (0)