<?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 identify the messages sent by two apps from same iOS device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16229/how-to-identify-the-messages-sent-by-two-apps-from-same-ios-device</link><description>In iOS, it is possible for different apps to send data to the same characteristics in the same device by calling retrieveConnectedPeriphrals… Is there a way to identify the data sent by these apps from the GATT server/periphral side?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Sep 2016 13:26:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16229/how-to-identify-the-messages-sent-by-two-apps-from-same-ios-device" /><item><title>RE: how to identify the messages sent by two apps from same iOS device</title><link>https://devzone.nordicsemi.com/thread/61990?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 13:26:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91032334-2ec1-4bbf-a746-db80926c471f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Holonono,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think there is a way the peripheral can detect if the BLE packets were sent by one app or the other. They both comes from same central device.&lt;/p&gt;
&lt;p&gt;What you can do is to set a flag in the data of the packet you send, a write command for example. You can set the first byte to 1 meaning it&amp;#39;s the command from app A, set it to 2 meaning it&amp;#39;s from app B.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>