<?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>How to add multiple characteristics with different attributes?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89534/how-to-add-multiple-characteristics-with-different-attributes</link><description>My platform is nRF52832 and SDK v16.0.0 (SDK 17.1.0 is also an option). 
 I am able to add two characteristics to a newly added vendor specific 128-bit UUID. However, the only way to get this to succeed with no errors (i.e. no INVALID_PARAMS returned</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Jan 2023 23:26:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89534/how-to-add-multiple-characteristics-with-different-attributes" /><item><title>RE: How to add multiple characteristics with different attributes?</title><link>https://devzone.nordicsemi.com/thread/404206?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 23:26:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc7a538d-f9fc-4c1b-87d0-5ef41b35a9ad</guid><dc:creator>RVM</dc:creator><description>&lt;p&gt;Closing this ticket since I believe that my observations were very likely triggered by some other unrelated software design&amp;nbsp; errors&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add multiple characteristics with different attributes?</title><link>https://devzone.nordicsemi.com/thread/375442?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2022 05:49:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e095e880-5cd9-431a-b512-08bfca04972d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I suggest using the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Fble_sdk_app_blinky.html"&gt;ble_app_blinky&amp;nbsp;e&lt;/a&gt;xample project as reference here. Basically, during initialization you have a &lt;strong&gt;services_init&lt;/strong&gt;() function where you set up the services/characteristics you want your GATT server to contain. This is done by calling &lt;strong&gt;sd_ble_gatts_service_add&lt;/strong&gt;() and &lt;strong&gt;sd_ble_gatts_characteristic_add&lt;/strong&gt;(). It&amp;#39;s important that when you initialize a characteristic, the support notification you buffer the char_handle with is added in the &lt;strong&gt;sd_ble_gatts_characteristic_add&lt;/strong&gt;() actually returns, since this char_handle is required every time you want to send notification data.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add multiple characteristics with different attributes?</title><link>https://devzone.nordicsemi.com/thread/375133?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2022 14:12:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47ddd496-8ab2-4d17-af30-58aaf4adffe2</guid><dc:creator>RVM</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have already reviewed that excellent tutorial and been using that as a basis for adding characteristics with &amp;#39;identical&amp;#39; attributes.&lt;/p&gt;
&lt;p&gt;My question is specific to multiple characteristics with &amp;#39;different&amp;#39; attributes e.g. one read only and the other &amp;#39;read-and-write&amp;#39;.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;RMV&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add multiple characteristics with different attributes?</title><link>https://devzone.nordicsemi.com/thread/375084?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2022 12:03:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05baf44d-6c52-4f85-ae86-a4d2ede7f4ae</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please check out &lt;a href="https://github.com/edvinand/custom_ble_service_example"&gt;the Custom Service tutorial&lt;/a&gt; made by my colleague Edvin. The tutorial shows you how to create custom services with custom value characteristics.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>