Pixels Plugin for Unity
Enable communications with Pixels dice using Bluetooth Low Energy.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Modules Pages
SGBleTypes.h File Reference

Definition of SGBleConnectionEvent and SGBleConnectionEventReason enumerations. More...

import <Foundation/Foundation.h>
import <CoreBluetooth/CoreBluetooth.h>
Include dependency graph for SGBleTypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(^ SGBlePeripheralDiscoveryHandler) (CBPeripheral *_Nonnull peripheral, NSDictionary< NSString *, id > *_Nonnull advertisementData, NSNumber *_Nonnull rssi)
 Peripheral discovery handler.
 
typedef void(^ SGBleConnectionEventHandler) (CBPeripheral *_Nonnull peripheral, SGBleConnectionEvent connectionEvent, NSError *_Nullable error)
 Peripheral connection event handler.
 
typedef void(^ SGBleCharacteristicValueEventHandler) (SGBlePeripheralQueue *_Nonnull peripheralQueue, CBCharacteristic *_Nonnull characteristic, NSError *_Nullable error)
 Peripheral connection event handler.
 

Enumerations

enum  {
  SGBleConnectionEventConnecting , SGBleConnectionEventConnected , SGBleConnectionEventFailedToConnect , SGBleConnectionEventReady ,
  SGBleConnectionEventDisconnecting , SGBleConnectionEventDisconnected
}
 Peripheral connection events. More...
 
enum  {
  SGBleConnectionEventReasonUnknown = -1 , SGBleConnectionEventReasonSuccess = 0 , SGBleConnectionEventReasonCanceled , SGBleConnectionEventReasonNotSupported ,
  SGBleConnectionEventReasonTimeout , SGBleConnectionEventReasonLinkLoss , SGBleConnectionEventReasonAdapterOff
}
 Peripheral connection events reasons. More...
 
enum  {
  SGBleErrorOutOfMemory , SGBleErrorNotImplemented , SGBleErrorInvalidParameter , SGBleErrorInvalidState ,
  SGBleErrorRequestCanceled , SGBleErrorPeripheralDisconnected
}
 Error codes. More...
 

Detailed Description

Definition of SGBleConnectionEvent and SGBleConnectionEventReason enumerations.