/* Function for applying GATT Server & Client context. 
Array of function pointers based on the types of service registered. */
static __INLINE ret_code_t gattsc_context_apply(dm_handle_t *p_handle)
/* Function for applying GATT Server & Client context. 
Array of function pointers based on the types of service registered. */
static __INLINE ret_code_t gattsc_context_apply(dm_handle_t *p_handle)
{
    uint32_t err_code;
    DM_LOG("[DM]: --> gattsc_context_apply\r\n");
    err_code = gatts_context_apply(p_handle);
    if (err_code == NRF_SUCCESS)
    {
        err_code = gattc_context_apply(p_handle);
    }
    return err_code;
}