Pixels Plugin for Unity
Enable communications with Pixels dice using Bluetooth Low Energy.
Loading...
Searching...
No Matches
UnityBridge.h File Reference

This file exists only to be included in UnityBridge.mm. More...

import "SGBleCentralManagerDelegate.h"
import "SGBlePeripheralQueue.h"
import "SGBleTypes.h"
import "SGBleUtils.h"
#include <cstdint>
#include <cstring>
#include <limits>
Include dependency graph for UnityBridge.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using peripheral_id_t = const char *
 Type for peripheral id which is the zero terminated string of the UUID assigned by the system for the peripheral (may change over long periods of time).
 
using request_index_t = std::uint32_t
 Type for the unique index of a BLE request given to this library.
 
using characteristic_index_t = std::uint32_t
 Type for the index of a characteristic instance in a service.
 
using characteristic_property_t = std::uint64_t
 Type for the standard BLE properties of characteristics.
 
typedef void(* BluetoothStateUpdateCallback) (int state)
 Callback notifying of a change of the host device Bluetooth state, for example radio turned on or off.
 
typedef void(* DiscoveredPeripheralCallback) (const char *advertisementDataJson)
 Callback notifying of the discovery of a BLE peripheral, with its advertisement data as a JSON string.
 
typedef void(* RequestStatusCallback) (request_index_t requestIndex, int errorCode)
 Callback notifying of the status of a BLE request.
 
typedef void(* PeripheralConnectionEventCallback) (request_index_t requestIndex, peripheral_id_t peripheralId, int connectionEvent, int reason)
 Callback notifying of a change of a peripheral connection state, with the reason for the change.
 
typedef void(* RssiReadCallback) (request_index_t requestIndex, int rssi, int errorCode)
 Callback notifying of the RSSI value read from a peripheral.
 
typedef void(* ValueReadCallback) (request_index_t requestIndex, const void *data, size_t length, int errorCode)
 Callback notifying of the value read from a peripheral's characteristic.
 

Detailed Description

This file exists only to be included in UnityBridge.mm.