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

Send write characteristic command data to all connected peripheral

Hello,I use s120 and I wnat to send data(write charactheristics value) to all connected peripheral when I receive a character from uart(in uart event handler)?(I use ble_app_multilink_central_s120) Can I do this using sd_ble_gattc_write() ?If yest,what parameters must use? Thanks in advance!

Parents
  • Hi John,

    As you can find in the description of sd_ble_gattc_write() description, there is a conn_handle parameter to identify the connection (peripheral). So if you have to send write command to several peripherals you would need to keep track of the active connection handles and call sd_ble_gattc_write() for each peripheral.

Reply
  • Hi John,

    As you can find in the description of sd_ble_gattc_write() description, there is a conn_handle parameter to identify the connection (peripheral). So if you have to send write command to several peripherals you would need to keep track of the active connection handles and call sd_ble_gattc_write() for each peripheral.

Children