This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Sending data from CC2541 to iPhone

Other Parts Discussed in Thread: CC2541

Hi,

I've tried searching the forums and going through the documentation and code samples, but I am having trouble following the code and knowing where to make changes to get the functionality I want because I have little experience in this area.  I have programmed my CC2541 in IAR Embedded Workbench to obtain the information I need and now I would like to send a couple pieces of data (three simple integers) over BLE to an iPhone whenever those values get updated on the CC2541.  Could anyone be very specific and help me figure out which code to add to my current project  to get the values sent to an iPhone?  Again I'm sorry if this is a very basic question, but I can't figure this out and would appreciate it if someone could be somewhat outright about the code that I would need, instead of just referring me to the documentation or sample code, which I can't seem to wrap my head around.

Thank you,

Brian

  • Hi Brian, 

    Did you look at SimpleBLEPeripheral? It's located in the stack installation "Projects" folder. It does pretty much what you are trying to acheive here. 

    Peder

  • Yes I have looked at most of the sample projects included in the Projects folder, but I can't figure out which parts of the code and which variables are relevant to change.  I know they are commented, but I'm still having trouble following the comments and I can't even tell which part of the code contains the data, or characteristics(?), being sent.  

    Thanks,

    Brian

  • I suppose first, though, I can't even get SimpleBLEPeripheral to work.  It compiles and downloads, but when I debug it, none of the LEDs light up and the LCD doesn't display anything different.  I have my computer connected to a Smart RF05 Eval Board, which is connected to the CC2541.  When I run SimpleBLEPeripheral, it should display something on the LCD of the Eval Board, correct?