Pixels Plugin for Unity
Enable communications with Pixels dice using Bluetooth Low Energy.
Loading...
Searching...
No Matches
BluetoothLE.h
Go to the documentation of this file.
1
6#pragma once
7
9{
15 std::future<BleAdapterState> getAdapterStateAsync();
16
23 std::future<bool> subscribeAdapterStateChangedAsync(const std::function<void(BleAdapterState)>& onStateChanged);
24}
A collection of C++ classes that provides a simplified access to Bluetooth Low Energy peripherals.
Definition bletypes.h:36
BleAdapterState
Bluetooth adapter states.
Definition bletypes.h:39
std::future< bool > subscribeAdapterStateChangedAsync(const std::function< void(BleAdapterState)> &onStateChanged)
Subscribe to the default Bluetooth adapter radio state events.
Definition BluetoothLE.cpp:96
std::future< BleAdapterState > getAdapterStateAsync()
Returns the default Bluetooth adapter state.
Definition BluetoothLE.cpp:76