Class GattServer


  • public class GattServer
    extends java.lang.Object
    • Constructor Detail

      • GattServer

        public GattServer​(android.content.Context context,
                          BleDriver bleDriver,
                          Logger logger,
                          android.bluetooth.BluetoothManager bluetoothManager)
    • 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)