This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to retrieve Value from multiple Characteristics based Service Handler p_ble_evt->header.evt_id.?

Hi,

 I have one service UUID ffe0 that has two characteristics: one of has UUID ffe4 use for "notify" and other one has UUID ffe5 use for "write and read".

Now i want to get the data from the FFE5 and reply accordingly as per the data that I received from FFE5 suppose I write send data from mobile App to board is "SEND=1" as string to characteristic  UUID FFE5 now according to the message received from the FFE5 service i.e. SEND=1 I want to reflect the characteristic UUID FFE4 as "OK" if the string matches as SEND=1. Now My main Question is How i know when the data is being received from FFE5 characteristic UUID. If I get that as an interrupt or anything I will send a reply as "OK" over the characteristic  UUID FFE4.

I have also created NRF_SDH_BLE_OBSERVER for that service.

But how to get value from the different characteristics UUID like 0xFFE5 and so forth if any .

	switch (p_ble_evt->header.evt_id)
        {
            case BLE_GAP_EVT_CONNECTED:
                p_our_service->conn_handle = p_ble_evt->evt.gap_evt.conn_handle;
                break;
            case BLE_GAP_EVT_DISCONNECTED:
                p_our_service->conn_handle = BLE_CONN_HANDLE_INVALID;
                break;
            default:
                // No implementation needed.
                break;
        }
        
        


Thanks in advance.

Related