Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: Transferring data between Peripheral and Central Device

$
0
0

Hello everybody,

I'm quite new in BLE devices.

I bought a CC2541DK kit and I started playing with SimplePeripheral and Central examples. I managed in understanding advertising, scanning and connection mechanism...

But once the two devices are connected, how can I simply pass application data between them? For instance I want the peripheral device to send a variable to the central device. the central device reads it , increments it and then it sends it again to the peripheral device and so on... I looked up in the firmware but it's very difficult for me to understand where I can insert this code, if are there data-buffers as "scanRspData" or "advertData"...or I'm totally wrong and I have to act in a different way.

Thanks in advance.


Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>