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

central uart MAX_CONNECTIONS

Hi,

I am using ble_app_uart_c_S120

How can i support more then 1 bonded connection?

i try:

#define DEVICE_MANAGER_MAX_CONNECTIONS   7
#define DEVICE_MANAGER_MAX_BONDS         7

but it is not always works, maybe i miss something else?

Thanks

Parents
  • The principle applies to the central also, you have to free up the slots to accept new bonds when you get DM_EVT_DEVICE_CONTEXT_DELETED. The DM module will notify the application of DM_DEVICE_CONTEXT_FULL when DEVICE_MANAGER_MAX_BONDS = number of bonds, and the application needs to handle this event. Try also to increase DEVICE_MANAGER_MAX_BONDS, it supports up to 254, but 8-10 devices is most common.

Reply
  • The principle applies to the central also, you have to free up the slots to accept new bonds when you get DM_EVT_DEVICE_CONTEXT_DELETED. The DM module will notify the application of DM_DEVICE_CONTEXT_FULL when DEVICE_MANAGER_MAX_BONDS = number of bonds, and the application needs to handle this event. Try also to increase DEVICE_MANAGER_MAX_BONDS, it supports up to 254, but 8-10 devices is most common.

Children
No Data
Related