Bio Radio SDK - Xamarin Android
|
This class is used to help with the searching and creation of BioRadioDevice objects More...
Public Member Functions | |
BioRadioDeviceManager (ITransportProvider transportProvider) | |
Constructor which tasks a bluetooth transport provider More... | |
override BioRadioDevice | GetBluetoothDevice (long macID) |
Attempt to connect to a BioRadio device using BlueTooth More... | |
BluetoothDeviceInfo [] | DiscoverBluetoothDevices () |
Performs a search for devices in the vicinity. More... | |
VirtualDeviceAdapter | CreateVirtualDevice (string fileName) |
Creates a virtual device wrapper to allow reading data from a file recorded by the BioRadio to its internal memory. More... | |
void | Dispose () |
Dispose method. More... | |
Public Member Functions inherited from GLNeuroTech.Devices.Common.DeviceManager< BioRadioDevice > | |
T | GetBluetoothDevice (string deviceId) |
Retrieves a reference to a T device based on a bluetooth connection. Use of this method requires a bluetooth radio installed on the host PC. More... | |
virtual T | GetDeviceByComPort (string comPort) |
Returns a device based on a predetermined serial COM port name. More... | |
virtual T | GetDeviceByTcpAddress (string hostname, int port) |
Returns the device connected at the specified hostname and port More... | |
VirtualDeviceAdapter | CreateVirtualDevice (Stream inputStream) |
Creates a virtual device with a file as a backing store. More... | |
This class is used to help with the searching and creation of BioRadioDevice objects
GLNeuroTech.Devices.BioRadio.BioRadioDeviceManager.BioRadioDeviceManager | ( | ITransportProvider | transportProvider | ) |
Constructor which tasks a bluetooth transport provider
transportProvider |
VirtualDeviceAdapter GLNeuroTech.Devices.BioRadio.BioRadioDeviceManager.CreateVirtualDevice | ( | string | fileName | ) |
Creates a virtual device wrapper to allow reading data from a file recorded by the BioRadio to its internal memory.
fileName | The full path to the file to be read |
The VirtualDeviceAdapter is a lightweight wrapper around the actual device instance, which allows a user to "feed" data in from the file and make it available on the device Signal instances. Typically, one will create an instance of VirtualDeviceAdapter and use it to loop through the data contained in the file until the end of the file is reached.
This example shows the basics of creating a VirtualDeviceAdapter instance and reading data from a file.
BluetoothDeviceInfo [] GLNeuroTech.Devices.BioRadio.BioRadioDeviceManager.DiscoverBluetoothDevices | ( | ) |
Performs a search for devices in the vicinity.
void GLNeuroTech.Devices.BioRadio.BioRadioDeviceManager.Dispose | ( | ) |
Dispose method.
|
virtual |
Attempt to connect to a BioRadio device using BlueTooth
macID | The mac ID of the device |
Reimplemented from GLNeuroTech.Devices.Common.DeviceManager< BioRadioDevice >.