Modified "Lesson 4 Exercise 2", NRF5340 BLE characteristic with both Notifications and Indications - always indicate instead of notification

Hello

I'm trying to use a service with a characteristic, which has CCCD flags. 

BT_GATT_CHRC_READ |  BT_GATT_CHRC_NOTIFY | BT_GATT_CHRC_INDICATE

I would like to have an ability for the mobile app to select Notification/Indication config runtime. The problem is: when I subscribe from "nRF Connect" Android app to the notifications of the "LED Button state" service, the app receives indications instead of notifications - regardless the fact that in Debug mode firmware calls "bt_gatt_notify" functions. In the app I also see, that it automatically switches to the "Indications" configuration

What I'm doing wrong? 

My setup is: NRF Connect SDK 2.3.0 with Windows 10, NRF5340-DK v1.0.0 (tried with 2 different kits), Android smartphone (tried with 2 different Android smartphones). Unfortunately I don't have a sniffer at the moment

Here is my sample project https://github.com/bravekit/Ble_Indicate_and_notification (modified Lesson 4 Exercise 2)

Parents Reply Children
No Data
Related