i am working with NRF52840 and i am using nRF Connect SDk.
can i get the help/documentation or guide to add the custom service.
can anyone compare and explain with nRF_SDK_17.0.2.
i am working with NRF52840 and i am using nRF Connect SDk.
can i get the help/documentation or guide to add the custom service.
can anyone compare and explain with nRF_SDK_17.0.2.
Hi
One of my colleagues has made a Custom BLE service sample project for the nRF Connect SDK here that is made for BLE courses.
Best regards,
Simon
Thank you for quick response,
have gone through this, this example represent peripheral side of creating custom service and all.
i am working on central where i have to read the custom service after connecting to the peripheral, i have modified nus_client.c and header file to read my custom services.
But that isn't working.
Hi
You need to modify this file to recognize your custom UUID, as the nus_client.c by default is only designed to work with the NUS base UUID. Also, since NUS_CLIENT does not have the discovery added, you need to change the gatt_discover() function to use the custom UUID as well.
What exactly "isn't working" in your case?
Best regards,
Simon
Thank you Simonr
i have modified that file with my custom uuids.
I think i am miising this part,Also, since NUS_CLIENT does not have the discovery added, you need to change the gatt_discover() function to use the custom UUID as well.
Can you please point me to any example in which it is done.
Would really like to see a walkthrough for the central side and if possible the combination of the central and peripheral for a device.
Hi
I'm sorry, that wasn't the best explanation. Since the nus_client.c file does not have a gatt_discover() function in the driver file you need to edit this in your main.c file instead to use the custom UUID. The central_uart samples main.c file has a gatt_discover() function that is looking for the NUS service specifically, so you need to either replace this with or add your custom service UUID here.
Unfortunately we do not have a specific walkthrough for the central side, as it is conceptually similar to how it's done on the peripheral side.
Best regards,
Simon