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

suggest changes in Ble_app_gatts central

Hi,

I am using Ble_app_gatts central example. Applied filter on name and connection made with some device which is not Nordic BLE device.

As in this central code, after connection(connected event) code moves to check security pramaters.I don't want to do that.

I want to do service discovery and after connected state and print all services.
What changes have to made in code for this.

Please help me on this asap

Regards,

Prajakta

Parents
  • You should find in ble_evt_handler() that pm_handler_secure_on_connection() is called, commenting out pm_handler_secure_on_connection() should do what you want.

    I do not believe the \ble_app_gatts example you refer to have included the ble_db_discovery module that handle discovery of peer GATT server. So I suggest to take a look at the \ble_app_blinky_c example project on how to include db_discovery_init() and call ble_db_discovery_start() on BLE_GAP_EVT_CONNECTED event in ble_evt_handler().

  • Hi Kenneth,

    I am using \ble_app_blinky_c example project and I am able to discover ble_lbs services.

    But I want to do it for custom service.

    Can you help me for flow for service discovery from start(init) to end in example code.

    Suggest changes in Blinky_code.

Reply Children
No Data
Related