C# Class BLEFramework.Unity.BLEController

Show file Open project: giomurru/ble-framework Class Usage Examples

Public Methods

Method Description
ConnectPeripheral ( string peripheralID ) : bool
ConnectPeripheralAtIndex ( int peripheralIndex ) : bool
GetData ( ) : byte[]
GetListOfDevices ( ) : string
InitBLEFramework ( ) : void
IsDeviceConnected ( ) : bool
ScanForPeripherals ( ) : void
SearchDevicesDidFinish ( ) : bool
SendData ( byte data ) : void

Private Methods

Method Description
_ConnectPeripheral ( string peripheralID ) : bool
_ConnectPeripheralAtIndex ( int peripheralIndex ) : bool
_GetData ( ) : byte[]
_GetListOfDevices ( ) : string
_InitBLEFramework ( ) : void
_IsDeviceConnected ( ) : bool
_ScanForPeripherals ( ) : void
_SearchDevicesDidFinish ( ) : bool
_SendData ( byte buffer ) : void

Method Details

ConnectPeripheral() public static method

public static ConnectPeripheral ( string peripheralID ) : bool
peripheralID string
return bool

ConnectPeripheralAtIndex() public static method

public static ConnectPeripheralAtIndex ( int peripheralIndex ) : bool
peripheralIndex int
return bool

GetData() public static method

public static GetData ( ) : byte[]
return byte[]

GetListOfDevices() public static method

public static GetListOfDevices ( ) : string
return string

InitBLEFramework() public static method

public static InitBLEFramework ( ) : void
return void

IsDeviceConnected() public static method

public static IsDeviceConnected ( ) : bool
return bool

ScanForPeripherals() public static method

public static ScanForPeripherals ( ) : void
return void

SearchDevicesDidFinish() public static method

public static SearchDevicesDidFinish ( ) : bool
return bool

SendData() public static method

public static SendData ( byte data ) : void
data byte
return void