<?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>Send multiple messages with nRF Toolbox UART Service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91158/send-multiple-messages-with-nrf-toolbox-uart-service</link><description>Hello, 
 I&amp;#39;m working with NUS service and the nRF Toolbox app. I need to send multiple messages from mobile app to DK. How can I do that?. Is there a macro/script example?. 
 Best regards, 
 Fernando.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Aug 2022 08:23:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91158/send-multiple-messages-with-nrf-toolbox-uart-service" /><item><title>RE: Send multiple messages with nRF Toolbox UART Service</title><link>https://devzone.nordicsemi.com/thread/384069?ContentTypeID=1</link><pubDate>Wed, 31 Aug 2022 08:23:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22624be4-8222-4c98-a5c2-08b61e471af7</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately, the macros only allow you to record and reply, they don&amp;#39;t allow you to add any logic / conditional operations / reusing values. You can find a better overview over what you can use it for &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Connect/blob/master/documentation/Macros/README.md"&gt;here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You would have to create this yourself if you need this echo functionality.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send multiple messages with nRF Toolbox UART Service</title><link>https://devzone.nordicsemi.com/thread/383144?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 01:14:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e77d413d-cc64-48c4-8bee-63f41e0226dc</guid><dc:creator>fproko</dc:creator><description>&lt;p&gt;Thanks Elfving. I was able to record a macro. Now I want to send an echo of the value received in the TX Characteristic, but i don&amp;#39;t know how to copy this value. So I&amp;#39;m trying to modify the XML file, here is my code.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;&amp;lt;macro name=&amp;quot;Response&amp;quot; icon=&amp;quot;MAGIC&amp;quot;&amp;gt;
   &amp;lt;!-- Assert Nordic UART Service--&amp;gt;
   &amp;lt;assert-service description=&amp;quot;Ensure Nordic UART Service&amp;quot; uuid=&amp;quot;6e400001-b5a3-f393-e0a9-e50e24dcca9e&amp;quot;&amp;gt;
      &amp;lt;!-- Assert TX Characteristic--&amp;gt;
      &amp;lt;assert-characteristic description=&amp;quot;Ensure TX Characteristic&amp;quot; uuid=&amp;quot;6e400003-b5a3-f393-e0a9-e50e24dcca9e&amp;quot;&amp;gt;
         &amp;lt;property name=&amp;quot;NOTIFY&amp;quot; requirement=&amp;quot;MANDATORY&amp;quot; /&amp;gt;
      &amp;lt;/assert-characteristic&amp;gt;
      &amp;lt;!-- Assert RX Characteristic--&amp;gt;
      &amp;lt;assert-characteristic description=&amp;quot;Ensure RX Characteristic&amp;quot; uuid=&amp;quot;6e400002-b5a3-f393-e0a9-e50e24dcca9e&amp;quot;&amp;gt;
         &amp;lt;property name=&amp;quot;WRITE&amp;quot; requirement=&amp;quot;MANDATORY&amp;quot; /&amp;gt;
      &amp;lt;/assert-characteristic&amp;gt;
   &amp;lt;/assert-service&amp;gt;
   &amp;lt;!-- Wait for notification --&amp;gt;
   &amp;lt;wait-for-notification description=&amp;quot;Wait for notification to TX Characteristic&amp;quot; characteristic-uuid=&amp;quot;6e400003-b5a3-f393-e0a9-e50e24dcca9e&amp;quot; service-uuid=&amp;quot;6e400001-b5a3-f393-e0a9-e50e24dcca9e&amp;quot;&amp;gt;
      &amp;lt;!-- Assert or not--&amp;gt;
   &amp;lt;/wait-for-notification&amp;gt;
   &amp;lt;!-- Send and echo of TX Characteristic Value --&amp;gt;
   &amp;lt;write description=&amp;quot;Write echo to RX Characteristic&amp;quot; characteristic-uuid=&amp;quot;6e400002-b5a3-f393-e0a9-e50e24dcca9e&amp;quot; service-uuid=&amp;quot;6e400001-b5a3-f393-e0a9-e50e24dcca9e&amp;quot; value=&amp;quot;9999999999999999999999&amp;quot; type=&amp;quot;WRITE_REQUEST&amp;quot; /&amp;gt;
&amp;lt;/macro&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send multiple messages with nRF Toolbox UART Service</title><link>https://devzone.nordicsemi.com/thread/382725?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 14:02:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5662044f-10bb-4363-876a-a84b6bc967f5</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Fernando,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think this is possible using the nRF Toolbox App. However, if you have an Android, it is possible using the nRF Connect App.&lt;/p&gt;
&lt;p&gt;Simply select a device and press the Floating Action Button (red circle bottom right). There you will also find a handy tutorial on how to use it.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-macros-currently-android-only"&gt;Here is a blog post with a bit more info if you need it&lt;/a&gt;. Let me know if you have any issues with it.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>