There are no official examples on how to transfer files through code. There are examples on how to do this from the Linux side in Intel® Edison Bluetooth® User Guide. However I believe you could make system calls from your code with system - C++ Reference. If you use this, you should be able to transfer your data through your code.
Thanks for the reply .... I tried your guide but it does not seem a good solution. I have to send simple text strings such as "XXX 1234" fifty times a second.
As I understand it I should use the file SPP-loopback.py and use system ("xxx 1234 /n/r") repetitively?
I also do not know Python ... but really I can not handle the bluetooth from a program?
It 'a bit disappointing as bluetooth management .... no alternative?
Hi! Edison uses a Broadcom BCM43340 right? there is an SDK?
If you don't want to use SPP-loopback, I'd suggest you to try to create the rfcomm from terminal using rfcomm and sdptool. Also examples like the ones you can find in Sample Bluetooth RFCOMM Client App in C - Pratik Sinha and RFCOMM sockets might be of your interest.