Hi
is there a function with which I can check if indication or notification on a characteristic with notify or indicate capabilities has been enabled by the master?
Hi
is there a function with which I can check if indication or notification on a characteristic with notify or indicate capabilities has been enabled by the master?
you can do a sd_ble_gatts_value_get()
on the CCCD handle, remember this have to be done in a connection with a connection handle. Because the CCCD value is stored in the system attributes that you should supply to the stack after creating a connection. (If the link has been bonded)
and is there a function to see if the device is connected?
Check your m_conn_handle to see if your connection is valid or not. This is shown in all ble_peripheral examples.