2020-07-05 02:11 AM
I want to discover the peripheral devices with BlueNRG-2 central role.The initializing function set up the public address with ac_write_config_data and than initialize the Gatt layer with aci_gatt_init function. Finally I call gap_init with the following parameters: (GAP_CENTRAL_ROLE|GAP_PERIPHERAL_ROLE (0x04|0x01), PRIVACY_DISABLED (0x00) and device name characteristic length: 0x07. All aci functions returns BLE_STATUS_SUCCESS (indicating the initialization was successful) but as soon as I start general discovery procedure with aci_start_general_discovery_proc it always returns (0x82) error.
Can anybody suggest a solution to this problem?
Regards,