I have already reviewd all of the videos and documentation found on your website, but it doesnt speak to anything regarding C++ windows application development.
You have a helloclient.exe app example, which I am trying to use, but it is not documented or commented very well. I need to figure out how to enable notifications using the functions already existing in the code that Broadcom provided.
The function, I believe, is: RegisterNotification()
Is this the correct function? I try running the function, but it doesnt seem to take any inputs to send enable or disable notifications. From your code:
// register to receive notification
GUID guid = UUID_HELLO_SERVICE;
HANDLE hService = OpenBleService(&m_bth, &guid);
if (hService == INVALID_HANDLE_VALUE)
reg.NumCharacteristics = 1;
reg.Characteristics = m_charHelloNotify;
if (m_pEventHandle == INVALID_HANDLE_VALUE)
HRESULT hr = BluetoothGATTRegisterEvent(hService, CharacteristicValueChangedEvent, ®, &NotificationCallback, m_NotificationContext, &m_pEventHandle, BLUETOOTH_GATT_FLAG_NONE);
ods("BluetoothGATTRegisterEvent hr:0x%x\n", hr);
I believe all of our code is written in C.
Here's some additional threads you will find useful during your research:
You have a C++ windows application example in your SDK. I am referring to the visual studio project, which is located here: \\WICED-Smart-SDK-2.1.1\WICED-Smart-SDK\Apps\hello_sensor\peerapps\Windows\HelloClient
We have a windows client app to read sensor data, its being tested right now, once we have it we shall post that .
Thankyou Vik86. FYI - I was able to successfully modify the Hello Client windows app example to grab sensor data from the Wiced Sense. It was not very straightforward and we had to port code over from using MFC and change alot of the variable types from wide character string (wcstr) types to standard (cstr) to work as a simple console application.
I look forward to seeing your official windows wiced sense app example.