<?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>Why my Custom Characteristic always show hex value instead of Int or Text?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104625/why-my-custom-characteristic-always-show-hex-value-instead-of-int-or-text</link><description>Hi 
 
 I have created a code in segger for NRF 52840. I have created my custom service/characteristic and also the LED and Battery Level. Other Service like LED and Battery Level shows values in text or percentage. But my custom characteristic always</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Oct 2023 07:42:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104625/why-my-custom-characteristic-always-show-hex-value-instead-of-int-or-text" /><item><title>RE: Why my Custom Characteristic always show hex value instead of Int or Text?</title><link>https://devzone.nordicsemi.com/thread/450211?ContentTypeID=1</link><pubDate>Fri, 13 Oct 2023 07:42:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f3284ee-7ea9-43b9-a1d5-834ba2b95f3b</guid><dc:creator>Amal-Niraltek</dc:creator><description>&lt;p&gt;Thanks. I did&amp;nbsp; the same and also modified the code as below and it works fine as text. INT format is not available as of now i guess in definitions. I have another query and i think its better to open in another ticket. Thanks for the information.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;attr_char_value.max_len = 10;&lt;br /&gt; attr_char_value.init_len = 10;&lt;br /&gt; char * value = &amp;quot;xxxxxxxxxx&amp;quot;;&lt;br /&gt; attr_char_value.p_value = value;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why my Custom Characteristic always show hex value instead of Int or Text?</title><link>https://devzone.nordicsemi.com/thread/450098?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2023 14:21:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e750ed8e-4f2c-479a-aa30-e804db0bd59d</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For known characteristics (such as the ones from Bluetooth SIG) the nRF Connect app knows how to format the characteristic value. For instance as a number, as text, or as binary (on/off) values.&lt;/p&gt;
&lt;p&gt;For custom characteristics, the nRF Connect app does not know how to format the characteristic value, and defaults to showing the hex value and the corresponding ascii character. This is what you see; when using the decimal value 123, it corresponds to the hexadecimal value 0x7B, or the ascii character &amp;#39;{&amp;#39;.&lt;/p&gt;
&lt;p&gt;If you long press on the line, in the nRF Connect app, you should get a menu where you can select &amp;quot;edit&amp;quot; for selecting how the characteristic should be formatted.&lt;/p&gt;
&lt;p&gt;In the left hamburger menu in the nRF Connect app for Android, you will have &amp;quot;Definitions&amp;quot;, which lists known services and characteristics. There you can also export or import definition files that are compatible with nRF Connect for Desktop.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why my Custom Characteristic always show hex value instead of Int or Text?</title><link>https://devzone.nordicsemi.com/thread/449963?ContentTypeID=1</link><pubDate>Thu, 12 Oct 2023 07:25:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:319dc214-68c3-4024-8215-2c5399b418d4</guid><dc:creator>Amal-Niraltek</dc:creator><description>&lt;p&gt;And i am checking it in nrf connect android app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>