This message was posted on behalf of Intel Corporation1 of 1 people found this helpful
Thanks for reaching out!
I'm not sure transferring data from Python to C would be the best approach, I mean, this would bring a lot of issues at the time of sharing the data. So, my first suggestion is that you reconsider using this approach and instead use a more traditional approach, meaning using only Python or only C. For Python, you can modify the SPP-Loopback example to transform it into your project. For C, I would suggest you to read this book: https://people.csail.mit.edu/albert/bluez-intro/c404.html to learn how to program Bluetooth using C and BlueZ's API.
If you still want to transfer data from Python to C, then I'd suggest you to read the following documents which might be of help:
I hope this information helps you,