Find Me Locator Profile.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
at_ble_status_t | fmp_locator_characteristic_found_handler (void *params) |
Handles all Discovered characteristics of a given handler in a connected device. More... | |
at_ble_status_t | fmp_locator_connected_state_handler (void *params) |
me profile connected state handler function More... | |
at_ble_status_t | fmp_locator_disconnect_event_handler (void *params) |
me profile disconnected state handler function More... | |
at_ble_status_t | fmp_locator_discovery_complete_handler (void *params) |
Discover all Characteristics supported for Immediate alert Service of a connected device. More... | |
void | fmp_locator_init (void) |
me Profile service initialization, declarations and advertisement More... | |
at_ble_status_t | fmp_locator_pair_done_handler (void *params) |
at_ble_status_t | fmp_locator_service_discover (at_ble_handle_t handle) |
Discover all services. More... | |
at_ble_status_t | fmp_locator_service_found_handler (void *param) |
Service found handler invoked by ble manager. More... | |
Variables | |
static const ble_gap_event_cb_t | fmp_gap_handle |
static const ble_gatt_client_event_cb_t | fmp_gatt_client_handle |
uint8_t | ias_char_data [MAX_IAS_CHAR_SIZE] |
gatt_ias_char_handler_t | ias_handle |
uint8_t | immediate_alert_value = INVALID_IAS_PARAM |
Alert value used for immediate alert service. More... | |
at_ble_status_t fmp_locator_characteristic_found_handler | ( | void * | params | ) |
Handles all Discovered characteristics of a given handler in a connected device.
[in] | characteristic_found | Discovered characteristics params of a connected device |
References ALERT_LEVEL_CHAR_UUID, AT_BLE_FAILURE, AT_BLE_SUCCESS, ble_check_iscentral(), gatt_ias_char_handler::char_discovery, gatt_ias_char_handler::char_handle, at_ble_characteristic_found_t::char_handle, at_ble_characteristic_found_t::char_uuid, at_ble_characteristic_found_t::conn_handle, DBG_LOG_PTS, DISCOVER_SUCCESS, at_ble_characteristic_found_t::properties, at_ble_uuid_t::uuid, and at_ble_characteristic_found_t::value_handle.
at_ble_status_t fmp_locator_connected_state_handler | ( | void * | params | ) |
me profile connected state handler function
connection state handler called when device goes on connected state
References ALL_UNUSED, AT_BLE_SUCCESS, ble_check_iscentral(), and fmp_locator_service_discover().
at_ble_status_t fmp_locator_disconnect_event_handler | ( | void * | params | ) |
me profile disconnected state handler function
disconnection event handler
References ALL_UNUSED, and AT_BLE_SUCCESS.
at_ble_status_t fmp_locator_discovery_complete_handler | ( | void * | params | ) |
Discover all Characteristics supported for Immediate alert Service of a connected device.
[in] | discover_status | discovery status of each handle |
References at_ble_characteristic_discover_all(), AT_BLE_DISC_ALL_CHAR, AT_BLE_DISC_ALL_SVC, at_ble_disconnect(), AT_BLE_FAILURE, AT_BLE_INVALID_PARAM, AT_BLE_SUCCESS, AT_BLE_TERMINATED_BY_USER, ble_check_iscentral(), gatt_ias_char_handler::char_discovery, at_ble_cmd_complete_event_t::conn_handle, DBG_LOG, DBG_LOG_DEV, DISCOVER_SUCCESS, gatt_ias_char_handler::end_handle, at_ble_cmd_complete_event_t::operation, gatt_ias_char_handler::service_discovery, gatt_ias_char_handler::start_handle, and at_ble_cmd_complete_event_t::status.
void fmp_locator_init | ( | void | ) |
me Profile service initialization, declarations and advertisement
Initialize the profile, includes all initializations and start up routines of the profiles.
References BLE_GAP_EVENT_TYPE, BLE_GATT_CLIENT_EVENT_TYPE, ble_mgr_events_callback_handler(), and REGISTER_CALL_BACK.
Referenced by main().
at_ble_status_t fmp_locator_pair_done_handler | ( | void * | params | ) |
at_ble_status_t fmp_locator_service_discover | ( | at_ble_handle_t | handle | ) |
Discover all services.
[in] | handle | connection handle |
References at_ble_primary_service_discover_all(), AT_BLE_SUCCESS, DBG_LOG, DBG_LOG_DEV, GATT_DISCOVERY_ENDING_HANDLE, and GATT_DISCOVERY_STARTING_HANDLE.
Referenced by fmp_locator_connected_state_handler(), and fmp_locator_pair_done_handler().
at_ble_status_t fmp_locator_service_found_handler | ( | void * | param | ) |
Service found handler invoked by ble manager.
References AT_BLE_SUCCESS, AT_BLE_UUID_16, DBG_LOG, DBG_LOG_PTS, DISCOVER_SUCCESS, gatt_ias_char_handler::end_handle, at_ble_primary_service_found_t::end_handle, IMMEDIATE_ALERT_SERVICE_UUID, gatt_ias_char_handler::service_discovery, at_ble_primary_service_found_t::service_uuid, gatt_ias_char_handler::start_handle, at_ble_primary_service_found_t::start_handle, at_ble_uuid_t::type, and at_ble_uuid_t::uuid.
|
static |
|
static |
uint8_t ias_char_data[MAX_IAS_CHAR_SIZE] |
gatt_ias_char_handler_t ias_handle |
uint8_t immediate_alert_value = INVALID_IAS_PARAM |
Alert value used for immediate alert service.