Package ej.bluetooth

Interface NativesImplementation

    • Method Detail

      • waitEvent

        int waitEvent​(byte[] buffer,
                      int bufferLength)
      • enable

        boolean enable()
      • disable

        void disable()
      • addService

        boolean addService​(byte[] service,
                           short[] handles)
      • startScanning

        boolean startScanning​(byte filterAction,
                              byte filterType,
                              byte[] filterData,
                              int filterDataSize)
      • stopScanning

        boolean stopScanning()
      • startAdvertising

        boolean startAdvertising​(byte[] advertisementData,
                                 int advertisementDataSize)
      • stopAdvertising

        boolean stopAdvertising()
      • connect

        boolean connect​(byte[] deviceAddress)
      • disconnect

        boolean disconnect​(short connHandle)
      • sendPairRequest

        boolean sendPairRequest​(short connHandle)
      • sendPairResponse

        boolean sendPairResponse​(short connHandle,
                                 boolean accept)
      • sendPasskeyResponse

        boolean sendPasskeyResponse​(short connHandle,
                                    boolean accept,
                                    int passkey)
      • discoverServices

        boolean discoverServices​(short connHandle,
                                 byte[] uuid)
      • sendReadRequest

        boolean sendReadRequest​(short connHandle,
                                short attributeHandle)
      • sendWriteRequest

        boolean sendWriteRequest​(short connHandle,
                                 short attributeHandle,
                                 byte[] value,
                                 int valueSize,
                                 boolean noResponse)
      • sendReadResponse

        boolean sendReadResponse​(short connHandle,
                                 short attributeHandle,
                                 byte status,
                                 byte[] value,
                                 int valueSize)
      • sendWriteResponse

        boolean sendWriteResponse​(short connHandle,
                                  short attributeHandle,
                                  byte status)
      • sendPrepareWriteResponse

        boolean sendPrepareWriteResponse​(short connHandle,
                                         short attributeHandle,
                                         byte status,
                                         byte[] value,
                                         int valueSize,
                                         int offset)
      • sendExecuteWriteResponse

        boolean sendExecuteWriteResponse​(short connHandle,
                                         short attributeHandle,
                                         byte status)
      • sendNotification

        boolean sendNotification​(short connHandle,
                                 short attributeHandle,
                                 byte[] value,
                                 int valueSize,
                                 boolean confirm)