<?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>NRF52840 Sending JSON by Bluetooth to smartphone</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71912/nrf52840-sending-json-by-bluetooth-to-smartphone</link><description>Hi, 
 
 I want to send data in JSON format to android app. I used ble_app_template and midi_service template to create my own service. I can send data binary as much as I want, but I need to send more data to custom mobile app and data should be in JSON</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Feb 2021 13:02:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71912/nrf52840-sending-json-by-bluetooth-to-smartphone" /><item><title>RE: NRF52840 Sending JSON by Bluetooth to smartphone</title><link>https://devzone.nordicsemi.com/thread/295829?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 13:02:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8220d559-239f-4376-b3b0-bd1d1f5bb5b8</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I was just thinking about that solution, thanks for help.&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Sending JSON by Bluetooth to smartphone</title><link>https://devzone.nordicsemi.com/thread/295823?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 12:55:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f230ba2f-1b28-4d69-9f4e-9c5f974ddd74</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The data transferred over BLE is just raw data, so how it is interpreted is up to you. If the raw data happens to be JSON formatted text, that would be transported in the exact same way as any other type of data.&amp;nbsp;if you look at the SDK code you will see that generally buffers are uint8_t. But you can cast a char buffer holding JSON data to uint8_t, and use as is. As long as both peers agree on what the data represents that is all that matters.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>