== An example project for creating your own Shell with your commands ==
 
== An example project for creating your own Shell with your commands ==
   −
<p>Place the following two files in this path ''' ~/contiki-2.7/apps/shell '''<\p>
+
<p>Place the following two files in this path ''' ~/contiki-2.7/apps/shell ''' </p>
 
<p>1)shell-try-example.c</p>
 
<p>1)shell-try-example.c</p>
 
<p>2)shell-try-example.h</p>
 
<p>2)shell-try-example.h</p>
    
<p>Source code: shell-try-example.c</p>
 
<p>Source code: shell-try-example.c</p>
 +
<p>''' Two new shell commands are created'''</p>
 +
<p>'''echo2''': This shell command echoes the text twice back onto the shell prompt </p>
 +
<p> '''blinkAllOnce''': This shell command is used to make each of the LED's (Red,Blu,Green) blink once each. </p>
 +
<p>Once the shell commands are created they are registered with the Contiki Shell using shell_try_init() </p>
 +
 
<source lang ="c">
 
<source lang ="c">
 
/**
 
/**
 
</source>
 
</source>
   Exception encountered, of type "Error"