<?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>NRF_LOG_INFO() print hexa to ASCII format</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33844/nrf_log_info-print-hexa-to-ascii-format</link><description>Hi Devzone, 
 I would like to print my payload on a hyperterminal using NRF_LOG_INFO(). 
 My array is like that : 
 manufacturer_data [0] =&amp;gt; Value: 0xAA; manufacturer_data [1] =&amp;gt; Value: 0xBB; manufacturer_data [2] =&amp;gt; Value: 0xCC; manufacturer_data [3</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 May 2018 12:16:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33844/nrf_log_info-print-hexa-to-ascii-format" /><item><title>RE: NRF_LOG_INFO() print hexa to ASCII format</title><link>https://devzone.nordicsemi.com/thread/130530?ContentTypeID=1</link><pubDate>Wed, 02 May 2018 12:16:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef280f59-8904-4de7-a50a-fc8d9f083531</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The NRF_LOG_INFO macro takes a printf-like formatted string as arguments.&lt;/p&gt;
&lt;p&gt;This means that &amp;quot;%X&amp;quot; will format the values as hex string.&lt;/p&gt;
&lt;p&gt;Something like this:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;NRF_LOG_INFO(&amp;quot;Value: %X&amp;quot;, value);&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;For more string formatting see the printf documentation. &lt;a href="https://www.tutorialspoint.com/c_standard_library/c_function_printf.htm"&gt;https://www.tutorialspoint.com/c_standard_library/c_function_printf.htm&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>