<?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>How to Split Array value Which send Phone</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32328/how-to-split-array-value-which-send-phone</link><description>Hi everyone 
 
 I want to sperate array data. For example phone send sifre[4] = {0x00, 0x01, 0x02, 0x03} and seperate my board 
 
 
 how can i do it?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Mar 2018 08:25:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32328/how-to-split-array-value-which-send-phone" /><item><title>RE: How to Split Array value Which send Phone</title><link>https://devzone.nordicsemi.com/thread/124700?ContentTypeID=1</link><pubDate>Fri, 16 Mar 2018 08:25:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d39d81ef-3c84-45a7-a4e2-92faf8317a56</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;If you simply want to compare two arrays you can do it like suggested here for example: &lt;a href="http://www.includehelp.com/code-snippets/c-program-to-compare-two-arrays.aspx"&gt;C program to compare two arrays&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;bool compareArray(uint8_t a[], uint8_t b[], uint8_t size)	
{
	for(uint8_t i = 0; i &amp;lt; size; i++)
	{
		if(a[i]!=b[i])
		{
			return false;
		}
	}
	return true;
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to seperate Array value Which send Phone</title><link>https://devzone.nordicsemi.com/thread/124573?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 12:37:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b31c3bc-0fe5-4086-8448-814878183b10</guid><dc:creator>rraa</dc:creator><description>&lt;p&gt;Thanks Martin,&lt;/p&gt;
&lt;p&gt;I want to send a password to the development card from the mobile phone. for example, &amp;quot;1,2,3,4&amp;quot; if the incoming &amp;quot;1,2,3,4&amp;quot; is led_state on. how can i do it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to seperate Array value Which send Phone</title><link>https://devzone.nordicsemi.com/thread/124563?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 11:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82c5df02-a005-4adc-842e-45d50973916f</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;This doesn&amp;#39;t make much sense.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you actually want to check led_state against your&amp;nbsp;&lt;em&gt;sifre&lt;/em&gt; array? Where does the&amp;nbsp;&lt;em&gt;data&lt;/em&gt; array come from? What kind of data type is led_state? If by &lt;em&gt;data[4]&lt;/em&gt; you mean &lt;em&gt;sifre[4]&lt;/em&gt;, then sifre[4] is outside your data array&amp;#39;s boundaries. You need to check sifre[3] to get the fourth byte in the array.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>