File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -68,16 +68,19 @@ enum nsapi_error {
68
68
NSAPI_STATUS_GLOBAL_UP = 1 , /*!< global IP address set */
69
69
NSAPI_STATUS_DISCONNECTED = 2 , /*!< no connection to network */
70
70
NSAPI_STATUS_CONNECTING = 3 , /*!< connecting to network */
71
- NSAPI_STATUS_ERROR_UNSUPPORTED = -3001
71
+ NSAPI_STATUS_ERROR_UNSUPPORTED = NSAPI_ERROR_UNSUPPORTED
72
72
} nsapi_connection_status_t ;
73
73
74
74
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.
76
78
*
77
79
* @enum nsapi_event
78
80
*/
79
81
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 */
81
84
} nsapi_event_t ;
82
85
83
86
You can’t perform that action at this time.
0 commit comments