/** **************************************************************************************** * @brief Disconnection indication to GLPS. * @param[in] msgid Id of the message received. * @param[in] param Pointer to the parameters of the message. * @param[in] dest_id ID of the receiving task instance * @param[in] src_id ID of the sending task instance. * @return If the message was consumed or not. **************************************************************************************** */ static int gap_discon_cmp_evt_handler(ke_msg_id_t const msgid, struct gap_discon_cmp_evt const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id) { //Check Connection Handle if (param->conhdl == glps_env.con_info.conhdl) { glps_disable(PRF_ERR_DISCONNECTED); } return (KE_MSG_CONSUMED); }
/** **************************************************************************************** * @brief Disconnection indication to GLPS. * @param[in] msgid Id of the message received. * @param[in] param Pointer to the parameters of the message. * @param[in] dest_id ID of the receiving task instance * @param[in] src_id ID of the sending task instance. * @return If the message was consumed or not. **************************************************************************************** */ static int gapc_disconnect_ind_handler(ke_msg_id_t const msgid, struct gapc_disconnect_ind const *param, ke_task_id_t const dest_id, ke_task_id_t const src_id) { //Check Connection Handle if (KE_IDX_GET(src_id) == glps_env.con_info.conidx) { glps_disable(PRF_ERR_DISCONNECTED, param->conhdl); } return (KE_MSG_CONSUMED); }