public class TinyBFactory extends Object implements org.sputnikdev.bluetooth.manager.transport.BluetoothObjectFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
TINYB_PROTOCOL_NAME |
| Constructor and Description |
|---|
TinyBFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Map<String,Object> config) |
void |
dispose()
Disposing TinyB factory by closing/disposing all adapters, devices and services.
|
void |
dispose(org.sputnikdev.bluetooth.URL url) |
org.sputnikdev.bluetooth.manager.transport.Adapter |
getAdapter(org.sputnikdev.bluetooth.URL url) |
org.sputnikdev.bluetooth.manager.transport.Characteristic |
getCharacteristic(org.sputnikdev.bluetooth.URL url) |
org.sputnikdev.bluetooth.manager.transport.Device |
getDevice(org.sputnikdev.bluetooth.URL url) |
Set<org.sputnikdev.bluetooth.manager.DiscoveredAdapter> |
getDiscoveredAdapters() |
Set<org.sputnikdev.bluetooth.manager.DiscoveredDevice> |
getDiscoveredDevices() |
String |
getProtocolName() |
static boolean |
loadNativeLibraries()
Loads TinyB native libraries (either bundeled or system ones).
|
public static final String TINYB_PROTOCOL_NAME
public static boolean loadNativeLibraries()
public org.sputnikdev.bluetooth.manager.transport.Adapter getAdapter(org.sputnikdev.bluetooth.URL url)
getAdapter in interface org.sputnikdev.bluetooth.manager.transport.BluetoothObjectFactorypublic org.sputnikdev.bluetooth.manager.transport.Device getDevice(org.sputnikdev.bluetooth.URL url)
getDevice in interface org.sputnikdev.bluetooth.manager.transport.BluetoothObjectFactorypublic org.sputnikdev.bluetooth.manager.transport.Characteristic getCharacteristic(org.sputnikdev.bluetooth.URL url)
getCharacteristic in interface org.sputnikdev.bluetooth.manager.transport.BluetoothObjectFactorypublic Set<org.sputnikdev.bluetooth.manager.DiscoveredAdapter> getDiscoveredAdapters()
getDiscoveredAdapters in interface org.sputnikdev.bluetooth.manager.transport.BluetoothObjectFactorypublic Set<org.sputnikdev.bluetooth.manager.DiscoveredDevice> getDiscoveredDevices()
getDiscoveredDevices in interface org.sputnikdev.bluetooth.manager.transport.BluetoothObjectFactorypublic String getProtocolName()
getProtocolName in interface org.sputnikdev.bluetooth.manager.transport.BluetoothObjectFactorypublic void configure(Map<String,Object> config)
configure in interface org.sputnikdev.bluetooth.manager.transport.BluetoothObjectFactorypublic void dispose()
public void dispose(org.sputnikdev.bluetooth.URL url)
dispose in interface org.sputnikdev.bluetooth.manager.transport.BluetoothObjectFactoryCopyright © 2017–2018 Sputnik Dev. All rights reserved.