<?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>Sending configuration data from central to peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47113/sending-configuration-data-from-central-to-peripheral</link><description>Hi, 
 
 I am using nRF52840 Preview DK with SDK version 15.3 
 
 I want to connect to a peripheral and configure some of its behavior such as Transmission power, Transmission interval and also trigger some functions and write to some variables, how can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 May 2019 11:35:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47113/sending-configuration-data-from-central-to-peripheral" /><item><title>RE: Sending configuration data from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/186162?ContentTypeID=1</link><pubDate>Thu, 09 May 2019 11:35:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f90ff2a-50e5-4df6-8e57-d3affee305f2</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;There are roughly two ways of sending data between two devices in a BLE GATT connection. Depending on the direction of the data flow, the method differ. When sending data from a client to a server, a write is performed, and you are updating the values of a characteristic in the servers GATT table. When&amp;nbsp;sending data from a server to a client, a notification is send, and you are notifying the client about a change in the GATT table.&lt;/p&gt;
&lt;p&gt;Take a look at the ble_app_uart_c (central) example to see how a write is perfomed.&lt;/p&gt;
&lt;p&gt;It is done in:&amp;nbsp;&lt;em&gt;uart_event_handle(..)--&amp;gt;ble_nus_c_string_send(.)--&amp;gt;&lt;strong&gt;sd_ble_gattc_write(..)&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The last function is the one of interest to you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>