<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102623/ble-service-not-advertising-if-characteristics-are-added</link><description>Trying to set up a custom BLE service (following this tutorial) Thing that I notice is: if I don&amp;#39;t invoke custom_value_char_add(), I&amp;#39;m able to see the service advertised in nRF Connect app, however if I invoke it, I don&amp;#39;t see it. I don&amp;#39;t see the returns</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Sep 2023 09:10:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102623/ble-service-not-advertising-if-characteristics-are-added" /><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/444442?ContentTypeID=1</link><pubDate>Tue, 05 Sep 2023 09:10:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d22b06e6-3b95-4c78-9e77-cfc5fa139308</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Morpho,&amp;nbsp;&lt;br /&gt;I don&amp;#39;t know what causing the issue. But if you can reproduce the problem with ble_app_hrs_freertos then it&amp;#39;s easier to track down what could be wrong.&amp;nbsp;We don&amp;#39;t know if using C++ compiler can cause any problem.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/444191?ContentTypeID=1</link><pubDate>Sat, 02 Sep 2023 19:17:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:231dbe91-6872-40fc-a320-85ce0f8317b2</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;But why do you think I should try ble_app_hrs_freertos though? Are you saying FreeRTOS is causing this issue?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/444036?ContentTypeID=1</link><pubDate>Fri, 01 Sep 2023 09:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c5ff51a-7f3b-48f7-9f20-b2ea255a5da2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Morpho,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My suggestion is still&amp;nbsp;testing with the sample first.&amp;nbsp;&lt;br /&gt;I would start with the ble_app_hrs_freertos.&amp;nbsp;&lt;br /&gt;If you can make it work converting to C++&amp;nbsp; ,&amp;nbsp; you can&amp;nbsp;start changing the service to your custom service, following what we did in ble_app_uart.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/443974?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 23:38:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0f99fc8-07cd-4685-9d96-b42952020518</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;It already is registered&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2023_2D00_08_2D00_31-at-4.36.16-PM.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/443866?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2023 09:29:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:331affb1-8a9d-41de-be14-82610adaacaa</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Morpho,&amp;nbsp;&lt;br /&gt;Then you need to look into if&amp;nbsp;&lt;span&gt;ble_cus_on_ble_evt() has been registered as the BLE Observer or not.&amp;nbsp;&lt;br /&gt;Please take a look at the ble_app_hrs_freertos example. It&amp;#39;s declared here in ble_hrs.h:&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1693474146887v1.png" alt=" " /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My suggestion is to try base your application on an example and then modify it for your need. This way you can always fallback when you see it doesn&amp;#39;t work as it should.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/443771?ContentTypeID=1</link><pubDate>Wed, 30 Aug 2023 15:18:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af9150a9-bbf8-43b9-9180-4b4e662e71de</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;It doesn&amp;#39;t crash and that&amp;#39;s what I&amp;#39;m saying; I put a breakpoint in&amp;nbsp;&lt;span&gt;ble_cus_on_ble_evt() and it didn&amp;#39;t get there.&amp;nbsp;The application is running fine (I am able to get sensor readings running in a separate task)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/443662?ContentTypeID=1</link><pubDate>Wed, 30 Aug 2023 08:06:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a81f3cc-d689-40b4-ae8f-a47a78a8bcd7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Morpho,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ble_cus_on_ble_evt() should be invoked when there is an BLE event, for example connection request. However, if the program crash before that, or if it stuck in some infinite loop of other *_on_ble_evt() then it will not be able to come to&amp;nbsp;ble_cus_on_ble_evt().&amp;nbsp;&lt;br /&gt;So what you need to do is to try debug it and see if it stuck some where or it crashed.&amp;nbsp;&lt;br /&gt;&amp;nbsp;You can also try to remove some of the features, try to make it as similar as possible to the example to see why&amp;nbsp;your application doesn&amp;#39;t work.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/443618?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2023 21:00:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53e4562c-94c6-4013-88dc-93fb7b0a733a</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;Sorry, was on vacation.&lt;br /&gt;&lt;br /&gt;Please refer to the screenshot I attached in my first response to Jared; I was able to see the advertisement however the connection doesn&amp;#39;t happen upon pressing the Connect button on top right. Shouldn&amp;#39;t&amp;nbsp;&lt;span class="pl-en"&gt;ble_cus_on_ble_evt be invoked upon a Connection request?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/441821?ContentTypeID=1</link><pubDate>Thu, 17 Aug 2023 10:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4036022b-c859-4ef2-9677-ce5275d879c6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Morpho,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m taking over the case from Jared.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I just want to clarify, when you don&amp;#39;t call&amp;nbsp;&lt;span&gt;custom_value_char_add() you can see the device advertise and you can connect to it ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;When you call&amp;nbsp;custom_value_char_add() you don&amp;#39;t see the device advertise ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Most likely there were an assert when calling&amp;nbsp;custom_value_char_add(), have you tried to step into the code and make sure there is no assert ? All error code return NRF_SUCCESS ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you are building application in C++ and FreeRTOS, my suggestion is to base your application on one of our example instead of following the tutorial.&amp;nbsp;&lt;br /&gt;This way you have a working example to convert to C++ and add FreeRTOS.&amp;nbsp;&lt;br /&gt;For custom service and characteristic , please take a look at the ble_app_uart example&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For FreeRTOS, please take a look at ble_app_hrs_freertos.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;But my suggestion is to start with the basic first before you add advanced feature or something we don&amp;#39;t support out of the box, like C++ for example.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/441436?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 15:53:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79c8311b-c6bd-4d5a-bdcc-0499dac78f48</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;I got this error earlier but I think I was able to resolve by 1) ensuring I am using C++ compiler 2) commenting out references to UARTE0_UART0_IRQHandler&amp;nbsp;in&amp;nbsp;&lt;strong&gt;nrfx_irqs_nrf52840.h&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2023_2D00_08_2D00_15-at-8.52.14-AM.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;Following is my preprocessor list under Common configs:&lt;strong&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;../../../config
../../../../../../components
../../../../../../components/ble/ble_advertising
../../../../../../components/ble/ble_dtm
../../../../../../components/ble/ble_racp
../../../../../../components/ble/ble_services/ble_ancs_c
../../../../../../components/ble/ble_services/ble_ans_c
../../../../../../components/ble/ble_services/ble_bas
../../../../../../components/ble/ble_services/ble_bas_c
../../../../../../components/ble/ble_services/ble_cscs
../../../../../../components/ble/ble_services/ble_cts_c
../../../../../../components/ble/ble_services/ble_dfu
../../../../../../components/ble/ble_services/ble_dis
../../../../../../components/ble/ble_services/ble_gls
../../../../../../components/ble/ble_services/ble_hids
../../../../../../components/ble/ble_services/ble_hrs
../../../../../../components/ble/ble_services/ble_hrs_c
../../../../../../components/ble/ble_services/ble_hts
../../../../../../components/ble/ble_services/ble_ias
../../../../../../components/ble/ble_services/ble_ias_c
../../../../../../components/ble/ble_services/ble_lbs
../../../../../../components/ble/ble_services/ble_lbs_c
../../../../../../components/ble/ble_services/ble_lls
../../../../../../components/ble/ble_services/ble_nus
../../../../../../components/ble/ble_services/ble_nus_c
../../../../../../components/ble/ble_services/ble_rscs
../../../../../../components/ble/ble_services/ble_rscs_c
../../../../../../components/ble/ble_services/ble_tps
../../../../../../components/ble/common
../../../../../../components/ble/nrf_ble_gatt
../../../../../../components/ble/nrf_ble_qwr
../../../../../../components/ble/peer_manager
../../../../../../components/boards
../../../../../../components/libraries/atomic
../../../../../../components/libraries/atomic_fifo
../../../../../../components/libraries/atomic_flags
../../../../../../components/libraries/balloc
../../../../../../components/libraries/bootloader/ble_dfu
../../../../../../components/libraries/bsp
../../../../../../components/libraries/button
../../../../../../components/libraries/cli
../../../../../../components/libraries/crc16
../../../../../../components/libraries/crc32
../../../../../../components/libraries/crypto
../../../../../../components/libraries/csense
../../../../../../components/libraries/csense_drv
../../../../../../components/libraries/delay
../../../../../../components/libraries/ecc
../../../../../../components/libraries/experimental_section_vars
../../../../../../components/libraries/experimental_task_manager
../../../../../../components/libraries/fds
../../../../../../components/libraries/fstorage
../../../../../../components/libraries/gfx
../../../../../../components/libraries/gpiote
../../../../../../components/libraries/hardfault
../../../../../../components/libraries/hardfault/nrf52
../../../../../../components/libraries/hci
../../../../../../components/libraries/led_softblink
../../../../../../components/libraries/log
../../../../../../components/libraries/log/src
../../../../../../components/libraries/low_power_pwm
../../../../../../components/libraries/mem_manager
../../../../../../components/libraries/memobj
../../../../../../components/libraries/mpu
../../../../../../components/libraries/mutex
../../../../../../components/libraries/pwm
../../../../../../components/libraries/pwr_mgmt
../../../../../../components/libraries/queue
../../../../../../components/libraries/ringbuf
../../../../../../components/libraries/scheduler
../../../../../../components/libraries/sdcard
../../../../../../components/libraries/sensorsim
../../../../../../components/libraries/slip
../../../../../../components/libraries/sortlist
../../../../../../components/libraries/spi_mngr
../../../../../../components/libraries/stack_guard
../../../../../../components/libraries/strerror
../../../../../../components/libraries/svc
../../../../../../components/libraries/timer
../../../../../../components/libraries/twi_mngr
../../../../../../components/libraries/twi_sensor
../../../../../../components/libraries/usbd
../../../../../../components/libraries/usbd/class/audio
../../../../../../components/libraries/usbd/class/cdc
../../../../../../components/libraries/usbd/class/cdc/acm
../../../../../../components/libraries/usbd/class/hid
../../../../../../components/libraries/usbd/class/hid/generic
../../../../../../components/libraries/usbd/class/hid/kbd
../../../../../../components/libraries/usbd/class/hid/mouse
../../../../../../components/libraries/usbd/class/msc
../../../../../../components/libraries/util
../../../../../../components/nfc/ndef/conn_hand_parser
../../../../../../components/nfc/ndef/conn_hand_parser/ac_rec_parser
../../../../../../components/nfc/ndef/conn_hand_parser/ble_oob_advdata_parser
../../../../../../components/nfc/ndef/conn_hand_parser/le_oob_rec_parser
../../../../../../components/nfc/ndef/connection_handover/ac_rec
../../../../../../components/nfc/ndef/connection_handover/ble_oob_advdata
../../../../../../components/nfc/ndef/connection_handover/ble_pair_lib
../../../../../../components/nfc/ndef/connection_handover/ble_pair_msg
../../../../../../components/nfc/ndef/connection_handover/common
../../../../../../components/nfc/ndef/connection_handover/ep_oob_rec
../../../../../../components/nfc/ndef/connection_handover/hs_rec
../../../../../../components/nfc/ndef/connection_handover/le_oob_rec
../../../../../../components/nfc/ndef/generic/message
../../../../../../components/nfc/ndef/generic/record
../../../../../../components/nfc/ndef/launchapp
../../../../../../components/nfc/ndef/parser/message
../../../../../../components/nfc/ndef/parser/record
../../../../../../components/nfc/ndef/text
../../../../../../components/nfc/ndef/uri
../../../../../../components/nfc/platform
../../../../../../components/nfc/t2t_lib
../../../../../../components/nfc/t2t_parser
../../../../../../components/nfc/t4t_lib
../../../../../../components/nfc/t4t_parser/apdu
../../../../../../components/nfc/t4t_parser/cc_file
../../../../../../components/nfc/t4t_parser/hl_detection_procedure
../../../../../../components/nfc/t4t_parser/tlv
../../../../../../components/softdevice/common
../../../../../../components/softdevice/s140/headers
../../../../../../components/softdevice/s140/headers/nrf52
../../../../../../components/toolchain/cmsis/include
../../../../../../external/fprintf
../../../../../../external/freertos/config
../../../../../../external/freertos/portable/CMSIS/nrf52
../../../../../../external/freertos/portable/GCC/nrf52
../../../../../../external/freertos/source/include
../../../../../../external/segger_rtt
../../../../../../external/utf_converter
../../../../../../integration/nrfx
../../../../../../integration/nrfx/legacy
../../../../../../modules/nrfx
../../../../../../modules/nrfx/drivers/include
../../../../../../modules/nrfx/hal
../../../../../../modules/nrfx/mdk
../config&lt;/pre&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/441130?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 11:25:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9930cdb-230a-40cd-99f9-dcfa61b229e7</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Does the project build for you successfully?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1692012233818v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I get this error which is usually due to the sdk_config.h not being set correctly or the drivers that contain multiple definitions of the IRQ handler being included simultaneously,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there some missing configuration from your part?&lt;/p&gt;
&lt;p&gt;I also see that you use C++ and FreeRTOS in this project,&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/441028?ContentTypeID=1</link><pubDate>Sat, 12 Aug 2023 06:49:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bfee41a-5a65-45bb-9efd-12ed0ae622fe</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/smart_5F00_watch.zip"&gt;devzone.nordicsemi.com/.../smart_5F00_watch.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can extract this zip in &amp;lt;SDK&amp;gt;/examples/ble_peripheral. It&amp;#39;s&amp;nbsp;nRF5_SDK_17.1.0_ddde560&lt;/p&gt;
&lt;p&gt;And yes&amp;nbsp;&lt;code&gt;NRF_SDH_BLE_VS_UUID_COUNT is 1&amp;nbsp;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;And I have followed the steps; it&amp;#39;s just not exact service name and possibly few minor changes. &lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;I think we should be able to narrow down the issue as to what could potentially cause the service to not advertise&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/440967?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 12:53:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b24b6651-adb2-4c21-82f8-895496f35b5f</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you increase the&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_SDH_BLE_VS_UUID_COUNT? &lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Also, when you followed the guide without any modifications, you were able to see the service after adding&amp;nbsp;&lt;span&gt;custom_value_char_add() right?&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Can you share a minimal project that will reproduce the issue on the nRF52 development kit, you can upload the project as a zip, just drag and drop it into the reply box,&lt;/p&gt;
&lt;p&gt;Could you also specify where in the SDK I should put the project for it to build successfully,&lt;/p&gt;
&lt;p&gt;thank,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/440797?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 14:59:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd33ace0-2dd3-456d-a659-a2abe9016332</guid><dc:creator>morpho</dc:creator><description>[quote userid="73165" url="~/f/nordic-q-a/102623/ble-service-not-advertising-if-characteristics-are-added/440758"]I see that you&amp;#39;re using a custom application, can you try to use our nRF Connect app instead?[/quote]
&lt;p&gt;1. I am already using it as a Central;&amp;nbsp;custom BLE service is set up as peripheral on the nRF Board&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Well, it&amp;#39;s not that I don&amp;#39;t see the service at all; it&amp;#39;s just I don&amp;#39;t see it when&amp;nbsp;&lt;span&gt;custom_value_char_add() is added. Do you see anything wrong in the snippet? I can also attach the project.&amp;nbsp;&lt;br /&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/440758?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 13:22:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3de4794b-937d-49fe-a611-07b0236289ed</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
[quote user=""]Thing that I notice is: if I don&amp;#39;t invoke&amp;nbsp;custom_value_char_add(), I&amp;#39;m able to see the service advertised in nRF Connect app, however if I invoke it, I don&amp;#39;t see it. I don&amp;#39;t see the returns of any SD functions ending in an error either.&lt;br /&gt;[/quote]
&lt;p&gt;So I&amp;#39;ve followed the same tutorial, and I was still able to the custom service after connection when adding&amp;nbsp;custom_value_char_add(). Two questions;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I see that you&amp;#39;re using a custom application, can you try to use our nRF Connect app instead?&lt;/li&gt;
&lt;li&gt;If you follow the steps in the tutorial with no modifications, do you still not see the custom service after connecting in step 4?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Note, that you have to turn on auto discovery in the nRF Connect mobile app when scanning for the service to show,&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/440185?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 18:59:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00c702db-2cb4-42bc-a00c-d9987331618a</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;Program isn&amp;#39;t asserting&lt;/p&gt;
&lt;p&gt;It seems to only advertise when I don&amp;#39;t invoke&amp;nbsp;&lt;span class="pl-en"&gt;custom_value_char_add, and pressing the &amp;quot;Connect&amp;quot; option, it remains &amp;quot;Connecting&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pl-en"&gt;Does that tell you something?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pl-en"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/IMG_5F00_9B77FD0F429A_2D00_1.jpeg" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pl-en"&gt;So questions remain:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pl-en"&gt;1.&amp;nbsp;Why could not adding characteristics to the BLE service prevent it from advertising?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="pl-en"&gt;2. Upon running in debug mode,&amp;nbsp;&lt;/span&gt;ble_cus_on_ble_evt() doesn&amp;#39;t get invoked upon Connecting. Shouldn&amp;#39;t it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also I have noted that when I use APP_ERROR_CHECK, or VERIFY_SUCCESS, program ends up in a weird state (sometimes nrf_log_frontend) due to logger&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a gist for custom_service:&amp;nbsp;&lt;a id="" href="https://gist.github.com/huzzziiii/51252a15dac42c52535c75ff03a3156f"&gt;https://gist.github.com/huzzziiii/51252a15dac42c52535c75ff03a3156f&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE service not advertising if characteristics are added</title><link>https://devzone.nordicsemi.com/thread/440069?ContentTypeID=1</link><pubDate>Mon, 07 Aug 2023 09:23:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82c40966-de2e-469c-a6e7-a5e79d31c53e</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are you saying that the customer service is no longer shown in the advertised packet after &lt;em&gt;&amp;quot;Step4 Adding a Custom Value Characteristic to the Custom Service?&amp;quot;&lt;/em&gt;&lt;/p&gt;
[quote user=""]Could there be a potential issue in GATT? Any starting points for debugging?[/quote]
&lt;p&gt;Are there any signs of the program asserting? Does it advertise, are you able to connect to it and see the custom service as shown in the instructions?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>