Home > Software engineering >  Bluetooth Low Energy application in Visual Studio C for image sharing. Which tools should I use?
Bluetooth Low Energy application in Visual Studio C for image sharing. Which tools should I use?

Time:12-16

I'm trying to develop a C application on Windows 10 (using Visual Studio 2017) capable of looking for nearby mobile devices and sending data (images) via Bluetooth. I'm new to Bluetooth applications, but from what I understand, the best solution is to use BLE and make the computer a GATT server.

For this purpose, I'm quite confused about which tool I should use in order to start creating my application, since most of the libraries I have found online are outdated or poorly documented (libblepp, gattlibpp, bluetoe). I've also found this Windows API but I don't understand if this is what I should use and I don't know how to include it in my project neither. Has anybody had some experience with this and could provide me some hints concerning the right tool to use, in order to get started with my project?

On the other side, I would like to develop a mobile app using Flutter capable of receiving the image and reading the data sent by the computer. flutter_blue looks like the best option to go with.

Edit: The idea for the application is the following: the computer runs an application that generates various frames. In the meanwhile, it constantly scans for nearby devices and, whenever a user makes a request, it sends the current output image to the device that makes the request.

CodePudding user response:

The Windows API is what you should use if you write a C application for Windows. That will be the best supported option. If you happen to find some library that also does BLE it will probably just be a wrapper around the Windows API.

Unfortunately these APIs use the WinRT architecture which is not the easiest to set up but should work fine once you've managed to set up the environment.

  • Related