Package ej.bluetooth

Class BluetoothConnection


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

      • BluetoothConnection

        public BluetoothConnection​(BluetoothAddress address,
                                   short connHandle)
        Not in API.
    • Method Detail

      • cleanupFeatureListeners

        public void cleanupFeatureListeners​(ej.kf.Feature feature)
        Not in API.
      • getService

        @Nullable
        public BluetoothService getService​(short serviceHandle)
        Not in API.
      • getAttribute

        @Nullable
        public BluetoothAttribute getAttribute​(short attributeHandle)
        Not in API.
      • getHandle

        public short getHandle()
        Not in API.
      • disconnect

        public boolean disconnect()
      • sendPairRequest

        public boolean sendPairRequest()
      • sendPairResponse

        public boolean sendPairResponse​(boolean accept)
      • sendPasskeyResponse

        public boolean sendPasskeyResponse​(boolean accept,
                                           int passkey)
      • discoverServices

        public boolean discoverServices()
      • discoverService

        public boolean discoverService​(BluetoothUuid uuid)
      • sendWriteRequest

        public boolean sendWriteRequest​(BluetoothAttribute attribute,
                                        byte[] value)
      • sendReadResponse

        public boolean sendReadResponse​(BluetoothAttribute attribute,
                                        byte status,
                                        byte[] value)
      • sendWriteResponse

        public boolean sendWriteResponse​(BluetoothAttribute attribute,
                                         byte status)
      • sendPrepareWriteResponse

        public boolean sendPrepareWriteResponse​(BluetoothAttribute attribute,
                                                byte status,
                                                byte[] value,
                                                int offset)
      • sendExecuteWriteResponse

        public boolean sendExecuteWriteResponse​(BluetoothAttribute attribute,
                                                byte status)
      • sendNotification

        public boolean sendNotification​(BluetoothCharacteristic characteristic,
                                        byte[] value,
                                        boolean confirm)