GAP Service Client

group GAPS_Client

GAP Service client.

Applications shall register GAP Service client during initialization through gaps_add_client function.

Applications can start discovering GAP Service through gaps_start_discovery function.

Applications can read GAP Service referenced values through gaps_read function.

Applications shall handle callback function registered by gaps_add_client.

T_APP_RESULT app_client_callback(T_CLIENT_ID client_id, uint8_t conn_id, void *p_data)
{
    if (client_id == gaps_client_id)
    {
        T_GAPS_CLIENT_CB_DATA *p_gaps_cb_data = (T_GAPS_CLIENT_CB_DATA *)p_data;
        switch (p_gaps_cb_data->cb_type)
        {
        case GAPS_CLIENT_CB_TYPE_DISC_STATE:
            switch (p_gaps_cb_data->cb_content.disc_state)
            {
            case DISC_GAPS_DONE:
            ......
    }
}