Files
Plugin/Source/ThirdParty/include/SenseGlove/Connect/BleUtil.hpp
T

49 lines
925 BLFS
C++

/**
* @file
*
* @author Max Lammers <max@senseglove.com>
* @author Mamadou Babaei <mamadou@senseglove.com>
*
* @section LICENSE
*
* Copyright (c) 2020 - 2026 SenseGlove
*
* @section DESCRIPTION
*
* Since our BLE library can only be included ONCE or cause issues, I'll just add it here...
*/
#pragma once
#include <SenseGlove/Common/Platform.hpp>
#include <cstdint>
#include <memory>
#include <string>
namespace SGConnect
{
class SGDevice;
class SGCONNECT_API BleUtil;
}// namespace SGConnect
class SGCONNECT_API SGConnect::BleUtil
{
public:
static bool InitializeBLE();
static bool TerminateBLE();
static bool CreateInstance(std::shared_ptr<SGDevice>& device);
static bool ReadSensorData(int32_t bleIndex, std::string& sensorData);
private:
struct Impl;
private:
BleUtil() = delete;
virtual ~BleUtil() = delete;
};