Click here to Skip to main content
15,064,140 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Example C code to use API "GetProcessIoCounters" Pin
Narasimha Moorthy20-Sep-21 19:14
MemberNarasimha Moorthy20-Sep-21 19:14 
GeneralRe: Example C code to use API "GetProcessIoCounters" Pin
Richard MacCutchan20-Sep-21 21:19
mveRichard MacCutchan20-Sep-21 21:19 
GeneralRe: Example C code to use API "GetProcessIoCounters" Pin
Victor Nijegorodov20-Sep-21 21:21
MemberVictor Nijegorodov20-Sep-21 21:21 
QuestionConnect to bluetooth service watch and read HR data Pin
Wim Van den Borre19-Sep-21 23:18
MemberWim Van den Borre19-Sep-21 23:18 
AnswerRe: Connect to bluetooth service watch and read HR data Pin
Richard MacCutchan19-Sep-21 23:20
mveRichard MacCutchan19-Sep-21 23:20 
GeneralRe: Connect to bluetooth service watch and read HR data Pin
Wim Van den Borre20-Sep-21 1:01
MemberWim Van den Borre20-Sep-21 1:01 
GeneralRe: Connect to bluetooth service watch and read HR data Pin
Richard MacCutchan20-Sep-21 1:09
mveRichard MacCutchan20-Sep-21 1:09 
GeneralRe: Connect to bluetooth service watch and read HR data Pin
Wim Van den Borre20-Sep-21 5:56
MemberWim Van den Borre20-Sep-21 5:56 
Ok, I'm getting closer:
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 test = characteristicsResult->Characteristics->First();
		auto characteristic = characteristicsResult->Characteristics->GetAt(0);


So firts line, i'm putting in the mac address manually, i check if the name corresponds and indeed it's my garmin. Then i put in the service and charateristic for the heart rate service. Now i'm stuck, how could I get the heart rate value out of this? I read somewhere that it's the first byte but don't know how to extract this
GeneralRe: Connect to bluetooth service watch and read HR data Pin
Richard MacCutchan20-Sep-21 5:58
mveRichard MacCutchan20-Sep-21 5:58 
GeneralRe: Connect to bluetooth service watch and read HR data Pin
Wim Van den Borre20-Sep-21 6:03
MemberWim Van den Borre20-Sep-21 6:03 
GeneralRe: Connect to bluetooth service watch and read HR data Pin
Richard MacCutchan20-Sep-21 6:21
mveRichard MacCutchan20-Sep-21 6:21 
GeneralRe: Connect to bluetooth service watch and read HR data Pin
Wim Van den Borre20-Sep-21 6:24
MemberWim Van den Borre20-Sep-21 6:24 
GeneralRe: Connect to bluetooth service watch and read HR data Pin
Richard MacCutchan20-Sep-21 6:32
mveRichard MacCutchan20-Sep-21 6:32 
GeneralRe: Connect to bluetooth service watch and read HR data Pin
jeron120-Sep-21 6:35
Memberjeron120-Sep-21 6:35 
GeneralRe: Connect to bluetooth service watch and read HR data Pin
Wim Van den Borre20-Sep-21 6:49
MemberWim Van den Borre20-Sep-21 6:49 
GeneralRe: Connect to bluetooth service watch and read HR data Pin
Dave Kreskowiak20-Sep-21 7:04
mveDave Kreskowiak20-Sep-21 7:04 
GeneralRe: Connect to bluetooth service watch and read HR data Pin
Wim Van den Borre20-Sep-21 7:11
MemberWim Van den Borre20-Sep-21 7:11 
GeneralRe: Connect to bluetooth service watch and read HR data Pin
Dave Kreskowiak20-Sep-21 7:18
mveDave Kreskowiak20-Sep-21 7:18 
GeneralRe: Connect to bluetooth service watch and read HR data Pin
Wim Van den Borre20-Sep-21 9:52
MemberWim Van den Borre20-Sep-21 9:52 
GeneralRe: Connect to bluetooth service watch and read HR data Pin
David Crow20-Sep-21 7:42
MemberDavid Crow20-Sep-21 7:42 
GeneralRe: Connect to bluetooth service watch and read HR data Pin
Richard MacCutchan21-Sep-21 0:42
mveRichard MacCutchan21-Sep-21 0:42 
GeneralRe: Connect to bluetooth service watch and read HR data Pin
David Crow21-Sep-21 2:44
MemberDavid Crow21-Sep-21 2:44 
QuestionControl PDF from c ++ Pin
danekbb10-Sep-21 1:57
Memberdanekbb10-Sep-21 1:57 
AnswerRe: Control PDF from c ++ Pin
Richard MacCutchan10-Sep-21 2:22
mveRichard MacCutchan10-Sep-21 2:22 
AnswerRe: Control PDF from c ++ Pin
Victor Nijegorodov10-Sep-21 4:23
MemberVictor Nijegorodov10-Sep-21 4:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.