<?xml-stylesheet type="text/xsl" href="https://test-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/"><channel><title>nRF Connect SDK Bluetooth Low Energy tutorial part 1: Custom Service in Peripheral role</title><link>/guides/nrf-connect-sdk-guides/b/getting-started/posts/ncs-ble-tutorial-part-1-custom-service-in-peripheral-role</link><description>Scope
The goal of this tutorial is to set-up your own custom Bluetooth Low Energy service on an nRF5340 acting in a peripheral role. We will set up a new Bluetooth LE project from scratch. The finished project will be provided as a referen...</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><item><title>RE: nRF Connect SDK Bluetooth Low Energy tutorial part 1: Custom Service in Peripheral role</title><link>https://test-devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/ncs-ble-tutorial-part-1-custom-service-in-peripheral-role</link><pubDate>Fri, 13 May 2022 19:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:373449ea-b393-4b85-b56b-7c6cf1b7fd6f</guid><dc:creator>user54890</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Thanks for the tutorial! Really needed it to get going. In the example code, where you show:&lt;br /&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:a11585ca-7404-462e-8711-5c3937a5a9e7:type=c_cpp&amp;text=%2F%2A%20%0D%0A%20%20%20%20The%20attribute%20for%20the%20TX%20characteristic%20is%20used%20with%20bt_gatt_is_subscribed%20%0D%0A%20%20%20%20to%20check%20whether%20notification%20has%20been%20enabled%20by%20the%20peer%20or%20not.%0D%0A%20%20%20%20Attribute%20table%3A%200%20%3D%20Service%2C%201%20%3D%20Primary%20service%2C%202%20%3D%20RX%2C%203%20%3D%20TX%2C%204%20%3D%20CCC.%0D%0A%2A%2F]&lt;/p&gt;
&lt;p&gt;This confused me when looking at some other examples, like zephyr\samples\bluetooth\peripheral_csc. In that case, they have 1 service, 4 characteristics, and 2 CCCs. However, when they refer to the 4th attribute using csc_svc.attrs[8], that made no sense according to your numbering scheme. I dug in a bit further and discovered how it actually works. Hopefully this can be corrected. Thanks!&lt;/p&gt;
&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:75bf044a-1426-4f58-aec1-ba87d1e8e406:type=text&amp;text=%2F%2A%20%0D%0A%20%20%20%20The%20attribute%20for%20the%20TX%20characteristic%20is%20used%20with%20bt_gatt_is_subscribed%20%0D%0A%20%20%20%20to%20check%20whether%20notification%20has%20been%20enabled%20by%20the%20peer%20or%20not.%0D%0A%20%20%20%20Attribute%20table%3A%200%20%3D%20Primary%20service%2C%201%20%3D%20RX%20properties%2C%202%20%3D%20RX%20descriptor%2C%20%0D%0A%20%20%20%203%20%3D%20TX%20properties%2C%204%20%3D%20TX%20descriptor%2C%205%20%3D%20CCC.%0D%0A%2A%2F]&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1300&amp;AppID=25&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF Connect SDK Bluetooth Low Energy tutorial part 1: Custom Service in Peripheral role</title><link>https://test-devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/ncs-ble-tutorial-part-1-custom-service-in-peripheral-role</link><pubDate>Fri, 14 Jan 2022 01:47:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:373449ea-b393-4b85-b56b-7c6cf1b7fd6f</guid><dc:creator>user112667</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Thanks for the great tutorial! NCS looks really great and I love the new syntax.&lt;br /&gt;I&amp;#39;m looking for a tutorial&amp;nbsp;fills&amp;nbsp;in some of the details&amp;nbsp;for NCS that are included in this tutorial for nRF5&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nRF5x-custom-ble-service-tutorial"&gt;https://github.com/NordicPlayground/nRF5x-custom-ble-service-tutorial&lt;/a&gt;&amp;nbsp;but I haven&amp;#39;t found them yet.&lt;br /&gt;Are there perchance any NCS tutorials covering &lt;span&gt;these more in-depth topics?&lt;/span&gt;&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1300&amp;AppID=25&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF Connect SDK Bluetooth Low Energy tutorial part 1: Custom Service in Peripheral role</title><link>https://test-devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/ncs-ble-tutorial-part-1-custom-service-in-peripheral-role</link><pubDate>Wed, 15 Dec 2021 13:00:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:373449ea-b393-4b85-b56b-7c6cf1b7fd6f</guid><dc:creator>user108959</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi, where are the following declarations used? I have the feeling that they are left from somewhere else.&lt;/p&gt;
&lt;p&gt;from my_service.c:&lt;/p&gt;
&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:6133dedc-1763-4e76-bcbe-813d3e288ea0:type=text&amp;text=%23define%20MAX_TRANSMIT_SIZE%20240%0D%0Auint8_t%20data_rx%5BMAX_TRANSMIT_SIZE%5D%3B%0D%0Auint8_t%20data_tx%5BMAX_TRANSMIT_SIZE%5D%3B%0D%0A%0D%0Amemset%28%26data_rx%2C%200%2C%20MAX_TRANSMIT_SIZE%29%3B%0D%0Amemset%28%26data_tx%2C%200%2C%20MAX_TRANSMIT_SIZE%29%3B%0D%0A]&lt;/p&gt;
&lt;p&gt;from my_service.h:&lt;/p&gt;
&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:2d5e40dd-1654-497f-b02b-176e26885445:type=text&amp;text=%2F%2A%2A%20%40brief%20Callback%20type%20for%20when%20new%20data%20is%20received.%20%2A%2F%0D%0Atypedef%20void%20%28%2Adata_rx_cb_t%29%28uint8_t%20%2Adata%2C%20uint8_t%20length%29%3B%0D%0A%0D%0A%2F%2A%2A%20%40brief%20Callback%20struct%20used%20by%20the%20my_service%20Service.%20%2A%2F%0D%0Astruct%20my_service_cb%20%0D%0A%7B%0D%0A%09%2F%2A%2A%20Data%20received%20callback.%20%2A%2F%0D%0A%09data_rx_cb_t%20%20%20%20data_rx_cb%3B%0D%0A%7D%3B%0D%0A]&lt;/p&gt;
&lt;p&gt;It&amp;#39;s just that everything works without them, and I don&amp;#39;t see anything changing.&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1300&amp;AppID=25&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF Connect SDK Bluetooth Low Energy tutorial part 1: Custom Service in Peripheral role</title><link>https://test-devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/ncs-ble-tutorial-part-1-custom-service-in-peripheral-role</link><pubDate>Wed, 10 Nov 2021 03:45:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:373449ea-b393-4b85-b56b-7c6cf1b7fd6f</guid><dc:creator>user108771</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;&lt;span&gt;Hi, thanks for the tutorial. There seems to be an issue with the advertising sequence.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I get this error:&amp;nbsp;Advertising failed to start (err -11) in the terminal. This error code is for &amp;quot;No more contexts&amp;quot;, but I do not understand what this means and I have not seen this error anywhere else on the forum.&lt;/span&gt;&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1300&amp;AppID=25&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: nRF Connect SDK Bluetooth Low Energy tutorial part 1: Custom Service in Peripheral role</title><link>https://test-devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/getting-started/posts/ncs-ble-tutorial-part-1-custom-service-in-peripheral-role</link><pubDate>Thu, 02 Sep 2021 14:43:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:373449ea-b393-4b85-b56b-7c6cf1b7fd6f</guid><dc:creator>user106788</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Thanks for the tutorial &lt;a href="/members/haakonsh"&gt;haakonsh&lt;/a&gt;, was wondering if you know about performing a DFU with this application. Currently having issues&lt;/p&gt;&lt;img src="https://test-devzone.nordicsemi.com/aggbug?PostID=1300&amp;AppID=25&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>