Package ipfs.gomobile.android.bledriver
Class GattServer
- java.lang.Object
-
- ipfs.gomobile.android.bledriver.GattServer
-
public class GattServer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intATT_HEADER_SIZE
-
Constructor Summary
Constructors Constructor Description GattServer(android.content.Context context, BleDriver bleDriver, Logger logger, android.bluetooth.BluetoothManager bluetoothManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description android.bluetooth.BluetoothServerSocketgetBluetoothServerSocket()android.bluetooth.BluetoothGattServergetGattServer()intgetL2capPSM()booleanisStarted()voidsetStarted(boolean started)booleanstart(java.lang.String peerID)voidstop()booleanwriteAndNotify(PeerDevice device, byte[] payload)
-
-
-
Field Detail
-
ATT_HEADER_SIZE
public static final int ATT_HEADER_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBluetoothServerSocket
public android.bluetooth.BluetoothServerSocket getBluetoothServerSocket()
-
start
public boolean start(java.lang.String peerID)
-
getL2capPSM
public int getL2capPSM()
-
getGattServer
public android.bluetooth.BluetoothGattServer getGattServer()
-
isStarted
public boolean isStarted()
-
setStarted
public void setStarted(boolean started)
-
stop
public void stop()
-
writeAndNotify
public boolean writeAndNotify(PeerDevice device, byte[] payload)
-
-