<?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>Openthread CLI API add custom commands</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63078/openthread-cli-api-add-custom-commands</link><description>Hello Support 
 I have an error when I try to add a custom CLI command with the API &amp;quot;otCliSetUserCommands()&amp;quot; . I added two commands for my example. The commands work fine but if I make a typo, usually the info &amp;quot;Error 35: InvalidCommand&amp;quot; pops up. But as</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Jul 2020 09:16:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63078/openthread-cli-api-add-custom-commands" /><item><title>RE: Openthread CLI API add custom commands</title><link>https://devzone.nordicsemi.com/thread/258261?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2020 09:16:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8255fada-4360-43b0-95b5-97595a00e216</guid><dc:creator>Rouben</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thank you for your support. I tried to debug my code on the DK.&amp;nbsp;Unfortunately the program doesn&amp;#39;t reached an error handler. The debugger stocked in a &amp;quot;unknown function&amp;quot; error. The callback ist successfully reached if I type the command on the cli. The program crashes only if I do a typo. (Then normally should pop up&amp;nbsp;&lt;strong&gt;&amp;quot;Error 35: InvalidCommand&amp;quot;)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;After a while I tried to move the code from my previous post to the main.c file and there it works fine. I think there is something wrong with my includes. I have to check this next week.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Rouben&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread CLI API add custom commands</title><link>https://devzone.nordicsemi.com/thread/257369?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2020 12:13:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:772f3afc-aab9-4743-a3ec-786d701ab00d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Rouben,&lt;/p&gt;
&lt;p&gt;Have you tried to run this on a DK and debug? What happens when the application crashes? Are you sure no error handlers are reached? Is the callbacks,&amp;nbsp;bm_cli_benchmark_start/stop(), reached?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>