<?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>What should I do if I were to write a struct to a characteristics in Android?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17876/what-should-i-do-if-i-were-to-write-a-struct-to-a-characteristics-in-android</link><description>It appears that, if I wanted to write characteristics to my BLE device, I can utilize the writeCharacteristic method of the BluetoothGatt class. Is this the right way to go, were I to write a series of data, up to 21 bytes, at struct to be more exact</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Nov 2016 09:55:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17876/what-should-i-do-if-i-were-to-write-a-struct-to-a-characteristics-in-android" /><item><title>RE: What should I do if I were to write a struct to a characteristics in Android?</title><link>https://devzone.nordicsemi.com/thread/68908?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2016 09:55:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef95a1cd-ee4f-44aa-8eba-0c3650d57dd1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Yes, you should use writeCharacteristic (). This command simply update the value of the characteristic you use in the argument to the correspondent characteristic on the server. And the value of the characteristic is in byte[], so basically what you send over BLE is an array of byte. BLE won&amp;#39;t care if it&amp;#39;s a struct data or anything else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>