ble multilink central

Hi,

I want to implement a BLE function that a master can connect to multiple slaves at the same time,and the services are located at the master,do I need to create multiple copies of the service?For example ,do i need to create eight battery services if i want to connect eight slaves?If there is no need,If one of the eight devices has the notify function enabled, will the other seven devices also receive data?Or the BLE master will automatically build a copy of the service for each connection?

  • do I need to create multiple copies of the service?For example ,do i need to create eight battery services if i want to connect eight slaves?

    No, that is the whole point of the server/client architecture. The server have one copy of whatever data it has to provide to the client. In this case, the server (master in your case) will have one service for many connection it is capable to establish.

    If there is no need,If one of the eight devices has the notify function enabled, will the other seven devices also receive data?

    You need to notify on all the connections with the different connection handle to be able to notify to the peer. There is no send to all notify available in BLE by default, but that functionality will be very easy to achieve as long as your application knows all the connection handles.

Related