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

How do I add characterics for multilink central s120

I am trying to get a communication between two pieces nRF51822 using the my service. I checked the peripheral with Master Controll Panel app and is working fine. The multilink peripheral is connected to an central and 1 characteristic is working fine.

I think there might be a problem with the db_discovery_evt_handler function as I implemented it. This is the function that searches for the characteristic, but my service has three characteristics.

How do I add characteristics?

There is done now, but not so good. I modified the functions static void on_evt_hvx(ble_evt_t * p_ble_evt, client_t * p_client) and static void db_discovery_evt_handler(ble_db_discovery_evt_t * p_evt).

client_handling.c

Parents
  • I'm not sure why your implementation doesn't work, I can't really test it since I don't have the projects.

    We have an example on GitHub, ble_app_uart_c, which is the central side of ble_app_uart from our SDK.

    It uses the discovery module with two characteristics, and may be of help to you.

    If you are still having problems, please consider uploading both the peripheral project and the central project you are working with. Also include what SDK and SoftDevice versions you are working with.

Reply
  • I'm not sure why your implementation doesn't work, I can't really test it since I don't have the projects.

    We have an example on GitHub, ble_app_uart_c, which is the central side of ble_app_uart from our SDK.

    It uses the discovery module with two characteristics, and may be of help to you.

    If you are still having problems, please consider uploading both the peripheral project and the central project you are working with. Also include what SDK and SoftDevice versions you are working with.

Children
No Data
Related