0

I'm working on a project where I need to establish connection between my computer and a Adafruit feather 32u4 with BLE incorporated. Due to comments on lots of webs, I decided to use linux to do the job. I got everything installed and I can connect my BLE with the PC successfully.

----MY CONNECTION PROCEDURE-----

I can even recieve data and send data between them with gatttool. To connect both devices i use this commands:

  • sudo hcitool lescan

  • sudo gatttool -t random -b F6:E5:F4:A7:71:E6 -I

  • connect

The devices are connected correctly. I can use all the gatttool commands and they respond as expected.

----END OF CONNECTION PROCEDURE----

---MAIN PROBLEM---

I don't know how I could implement all the commands in a packed C program. I need to be able to manage all the commands in the same program !! without using brute force with system().

It would be great if someone could show me how gatttool do its magic.

I mainly need to know how to get the data from Rx and how to send it to Tx via code not commands.

Note: I can supply any further information if needed.

0 Answers0