wifi_event_t

Event types for Wi-Fi service events.

Synopsis:

#include <wifi/wifi_service.h>
 
typedef enum {
      WIFI_EVENT_STATION_CONNECTION_STATE = 0   
      WIFI_EVENT_SCAN_RESULTS = 1   
      WIFI_EVENT_AGGREGATOR_PROFILE_ENABLE_CHANGE = 2   
      WIFI_EVENT_AGGREGATOR_LOGIN_TIMEOUT = 3   
      WIFI_EVENT_AGGREGATOR_DEREGISTERED = 4   
      WIFI_EVENT_IGNORE = 0xFE   
      WIFI_EVENT_UNKNOWN = 0xFF   
} wifi_event_t;

Since:

BlackBerry 10.2.0

Data:

WIFI_EVENT_STATION_CONNECTION_STATE
The Wi-Fi station connection state has changed.

It can be queried using the wifi_station_connection_get_state() function.

WIFI_EVENT_SCAN_RESULTS
New scan results are available.

They can be queried using the wifi_get_scan_results() function.

WIFI_EVENT_AGGREGATOR_PROFILE_ENABLE_CHANGE
A change in the aggregator profile's enable status has occurred.

The event reason and the new enable state can be queried using the wifi_service_event_get_aggregator_profile_enable_state() function.

WIFI_EVENT_AGGREGATOR_LOGIN_TIMEOUT
The aggregator login wait period has timed out.

This occurs if the wifi_aggregator_login_complete() function is not called to confirm hotspot login result after the Wi-Fi connection is established.

WIFI_EVENT_AGGREGATOR_DEREGISTERED
The aggregator has been deregistered.
WIFI_EVENT_IGNORE
The event can be ignored by the application.

This event type may be returned if the file descriptor changes but the event is applicable only to another registered application.

WIFI_EVENT_UNKNOWN
The event type is unknown.

Library:

libwifi (For the qcc command, use the -l wifi option to link against this library)

Description:

This enum defines the event codes for Wi-Fi service events that are generated if wifi_service_initialize() was called.