Interface ConnectionInterface
-
- All Implemented Interfaces:
public interface ConnectionInterface
-
-
Method Summary
Modifier and Type Method Description abstract UnitconnectDevice(BDDeviceSessionImpl session)abstract UnitconnectDeviceInBackground(BDDeviceSessionImpl session)Issue a background connection request (connectGatt with autoConnect = true). abstract UnitdisconnectDevice(BDDeviceSessionImpl session)abstract UnitcancelDeviceConnection(BDDeviceSessionImpl session)abstract UnitsetPhy(BDDeviceSessionImpl session)abstract UnitreadPhy(BDDeviceSessionImpl session)abstract BooleanstartServiceDiscovery(BDDeviceSessionImpl session)abstract BooleansetMtu(BDDeviceSessionImpl session)abstract BooleanisPowered()-
-
Method Detail
-
connectDevice
abstract Unit connectDevice(BDDeviceSessionImpl session)
-
connectDeviceInBackground
abstract Unit connectDeviceInBackground(BDDeviceSessionImpl session)
Issue a background connection request (connectGatt with autoConnect = true). The Bluetooth stack keeps the request open and connects when the device becomes reachable, without the app scanning, also while the screen is off or the process is in the background.
-
disconnectDevice
abstract Unit disconnectDevice(BDDeviceSessionImpl session)
-
cancelDeviceConnection
abstract Unit cancelDeviceConnection(BDDeviceSessionImpl session)
-
setPhy
abstract Unit setPhy(BDDeviceSessionImpl session)
-
readPhy
abstract Unit readPhy(BDDeviceSessionImpl session)
-
startServiceDiscovery
abstract Boolean startServiceDiscovery(BDDeviceSessionImpl session)
-
setMtu
abstract Boolean setMtu(BDDeviceSessionImpl session)
-
-
-
-