I need some help updating a project that uses the Windows Bluetooth API (which works in 4.23). I’m using this header sandwich to get the necessary headers and libraries included:
#include “Windows/AllowWindowsPlatformTypes.h”
#include “Windows/prewindowsapi.h”
#include <stdio.h>
#include <windows.h>
#include <setupapi.h>
#include <devguid.h>
#include <regstr.h>
#include <bthdef.h>
#include <Bluetoothleapis.h>
#include <Objbase.h>
#pragma comment(lib, “SetupAPI”)
#pragma comment(lib, “BluetoothApis.lib”)
#include “Windows/PostWindowsApi.h”
#include “Windows/HideWindowsPlatformTypes.h”
The bluetooth identifiers such as BTH_LE_GATT_CHARACTERISTIC_VALUE are not found. I’m thinking BluetoothApis.lib isn’t being linked? Was the lib variable changed, or is there anything else I should check? Thanks!
Edit:
Figured it out. Turns out my macro definitions for _WIN32_WINNT and WINVER were reverted back to 0x601 (for WIndows 7) instead of persisting as 0x602 (Windows 8) in my previous build. I have to edit the intermediate files SharedPCH.Engine.h and Definitions.MyApp.h to change these macro definitions. Is there a better way to do this?