<?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>CLI one byte commands</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73142/cli-one-byte-commands</link><description>I&amp;#39;m working on an application that utilizes CLI library, and I need to add CLI commands as in the code below: 
 
 
 
 But when I attempt this I get an error message: 
 error: invalid suffix &amp;quot;_str_ptr&amp;quot; on integer constant 1&amp;gt; ../../../../components/libraries</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Mar 2021 16:10:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73142/cli-one-byte-commands" /><item><title>RE: CLI one byte commands</title><link>https://devzone.nordicsemi.com/thread/301758?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 16:10:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b799ee2a-b998-4853-a5ee-a71e67f1c8f6</guid><dc:creator>enukic</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I realized that after spending some time in nrf_cli.h, reading #defines.&lt;/p&gt;
&lt;p&gt;Thank you for clarifying that for me.&lt;/p&gt;
&lt;p&gt;I do not experience any problems when testing with single char, works fine for me.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Emir&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI one byte commands</title><link>https://devzone.nordicsemi.com/thread/301757?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 15:57:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f96babd-f9bb-499a-8766-4876251f4a81</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Does that work with just the single character, or does it still need &amp;#39;Enter&amp;#39; to &amp;quot;action&amp;quot; the command ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI one byte commands</title><link>https://devzone.nordicsemi.com/thread/301753?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 15:55:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e7b758f-ec56-41f7-aa31-75ec3fda1a38</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;NRF_CLI_CMD_REGISTER() macro will concatenate the&amp;nbsp;p_syntax arguments into a variable name:&amp;nbsp;p_syntax ## _str_ptr. Variable names starting with a number is not supported in C, see &lt;a href="https://www.tutorialspoint.com/why-c-cplusplus-variables-doesn-t-start-with-numbers"&gt;this page&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Apart from this, I do not experience any problems when testing with single char, i.e. like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_CLI_CMD_REGISTER(p, NULL, &amp;quot;PING&amp;quot;, cmd_ping);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do you get any errors when using a single letter?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CLI one byte commands</title><link>https://devzone.nordicsemi.com/thread/301472?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 14:16:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d7e12e8-c401-4577-ad95-b00b9d06f270</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;I think it&amp;#39;s fundamental to the CLI design that its commands are &lt;em&gt;strings&lt;/em&gt;, and terminated by &amp;lt;enter&amp;gt; ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>