question

WeltDesign-6070 avatar image
0 Votes"
WeltDesign-6070 asked WeltDesign-6070 commented

C++ Bluetooth Windows 10 - get heartrate and acceleromter data

Hey everyone,

I'm trying to read data from my garmin via bluetooh, I've put in the mac adress and when i check the name i can see it works.
Then i put in the correct service and characteristic for the heart rate data. Now i'm stuck because i don't know how to get the value out of the characteristic. Does anyone have experience with this? I'm also looking to get the accelerometer data out of it.

     auto leDevice = co_await Bluetooth::BluetoothLEDevice::FromBluetoothAddressAsync(264540343013609);
     auto naam = leDevice->Name;
        
     auto servicesResult = co_await leDevice->GetGattServicesForUuidAsync(serviceUUID);
     auto service = servicesResult->Services->GetAt(0);
     auto characteristicsResult = co_await service->GetCharacteristicsForUuidAsync(characteristicUUID);
     auto characteristic = characteristicsResult->Characteristics->GetAt(0);
c++
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

*Update i found almost exactly what I want to do in c# but it needs to be in c++ ... If anyone could help me out getting this to work in c++ would be highly appreciated!

QuickBluetoothLE


0 Votes 0 ·

0 Answers