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

increase BLE_GATT_DB_MAX_CHARS

Hello, i'm using nRF52833, pca10100.

I would like to connect multiple peripherals by referring to the mulit link example.

First of all, I'm going to try to connect to a single device. And then warning below appears.


I literally increased the characteristic value.
The previous one that was defined as 6 was randomly modified to 12, so it was connected well without warning.

I have a question here. In fact, I solved the problem without knowing the exact cause of the problem, so I'd like to hear a proper explanation for the cause of such a warning.

I gave a random value of 12, but I think I need to define it as much as the characterisitc that the device provides. Where can I check it?
As far as I know, the device I connected has only two characteristics: 1601, 1602. Is there anything I didn't check in the process of DB discovery?
Also, 0x1600 is my device service UUID, but why does 0x0000 come it up ?\

BR, lyrics

Parents
  • Hi 

    The multilink example is designed around the Led Button service (LBS), and assumes that you are connecting to peripherals that use this service. 

    Some of the code you have included refers to the Nordic UART service (NUS), which is comparable to LBS, but use different UUID's and different characteristic properties. 

    Which service are you using on the peripheral side?

    The characteristic UUID's 0x1601 or 0x1602 doesn't fit with either NUS or LBS. 

    I gave a random value of 12, but I think I need to define it as much as the characterisitc that the device provides. Where can I check it?

    The ble_db_disc module is designed around the assumption that you know in advance what service(s) the peripheral device is using, and how many characteristics each service might have. 

    Best regards
    Torbjørn

  • Hi,

    Some of the code you have included refers to the Nordic UART service (NUS), which is comparable to LBS, but use different UUID's and different characteristic properties. 

    I changed the UUID in the central example, so I thought the connection done well. Even though the connect between peri and central is good, but I assumed that there was an error in the process of finding db.

Reply Children
Related