<?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 / return a message to acknowledge that my peripheral is successfully connected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12350/send-return-a-message-to-acknowledge-that-my-peripheral-is-successfully-connected</link><description>I am having some issues figuring out how to send a simple string or character to my central. 
 What I want is the peripheral to send an acknowledgement back to the central that it is connected. 
 I am building on the ble_app_uart example in ble_peripherals</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Mar 2016 22:24:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12350/send-return-a-message-to-acknowledge-that-my-peripheral-is-successfully-connected" /><item><title>RE: Send / return a message to acknowledge that my peripheral is successfully connected</title><link>https://devzone.nordicsemi.com/thread/46717?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2016 22:24:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38a51137-613a-4d39-b784-27eba3f03ce4</guid><dc:creator>erltot</dc:creator><description>&lt;p&gt;Not at all, as you say it&amp;#39;s probably more complicated than I get.&lt;/p&gt;
&lt;p&gt;I am playing around with the examples and got a bunch of peripherals/robots being controlled from a multilink central combined with the UART examples, but every time I try to add or change features as I want them, I sort of bump into issues like this one where it&amp;#39;s just not as simple to do as it usually is on the MCUs i&amp;#39;ve been playing with before.&lt;/p&gt;
&lt;p&gt;Thanks for your reply though, I will use your suggestion on my project :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send / return a message to acknowledge that my peripheral is successfully connected</title><link>https://devzone.nordicsemi.com/thread/46716?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2016 21:46:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4baef0f3-a664-468e-b3c8-7084810d7be3</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Hopefully I don&amp;#39;t come off as being obtuse, because I don&amp;#39;t mean to be. It sounds like you want the Nordic BLE equivalent of &amp;quot;Hello World&amp;quot;. Which you certainly can do, but it is more work than it would be with a simple PC program. The best thing to do IMHO would be to experiment with the examples Nordic provides with its SDK. There are examples of central and peripheral applications that you can point at each other and get communicating. Alternatively there is also a Nordic iOS toolbox with examples for an iPhone if that is what you are using for a Central device. Another way of doing a &amp;quot;hello world&amp;quot; type of experiment would be to use the Master Control Panel as your Central application and use it to connect and talk to one of the peripheral projects provided in the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send / return a message to acknowledge that my peripheral is successfully connected</title><link>https://devzone.nordicsemi.com/thread/46715?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2016 21:23:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d29c9187-a9c4-4570-bb30-cf14ef058461</guid><dc:creator>erltot</dc:creator><description>&lt;p&gt;Ok, I will probably use this instead, allthough I am still curious on how I can send something simple over ble, I cannot figure out how to do it and no answers regarding similar topics really clarify this for me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Send / return a message to acknowledge that my peripheral is successfully connected</title><link>https://devzone.nordicsemi.com/thread/46714?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2016 19:44:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37e49494-7dee-4470-82d2-53c138246fc5</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I don&amp;#39;t think you want to do that in the on_ble_evt function. That is running in the event (interrupt) context IIRC. You would want to set a flag and use that in your main loop to trigger sending the message to the central device. Also, it looks like that ble_nus_string_send uses notifications, so you will want to wait until the CCCD is turned on for notification. You can detect that where you handle write events and you can see the write to the CCCD handle and use that to trigger setting your flag.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>