public BondRequestTxMessage() { init(opcode, 1); } }
private synchronized void performBondWrite(BluetoothGattCharacteristic characteristic) { Log.d(TAG,"performBondWrite() started"); final BondRequestTxMessage bondRequest = new BondRequestTxMessage(); characteristic.setValue(bondRequest.byteSequence); if (mGatt != null) { mGatt.writeCharacteristic(characteristic); } else { Log.e(TAG, "mGatt was null when trying to write bondRequest"); } if (delayOnBond) { Log.e(TAG, "Delaying before bond"); waitFor(1000); Log.e(TAG, "Delay finished"); } isBondedOrBonding = true; device.createBond(); Log.d(TAG,"performBondWrite() finished"); }
private synchronized void performBondWrite(BluetoothGattCharacteristic characteristic) { Log.d(TAG,"performBondWrite() started"); final BondRequestTxMessage bondRequest = new BondRequestTxMessage(); characteristic.setValue(bondRequest.byteSequence); if (mGatt != null) { mGatt.writeCharacteristic(characteristic); } else { Log.e(TAG, "mGatt was null when trying to write bondRequest"); } if (delayOnBond) { Log.e(TAG, "Delaying before bond"); waitFor(1000); Log.e(TAG, "Delay finished"); } isBondedOrBonding = true; device.createBond(); Log.d(TAG,"performBondWrite() finished"); }
private synchronized void performBondWrite(BluetoothGattCharacteristic characteristic) { Log.d(TAG,"performBondWrite() started"); final BondRequestTxMessage bondRequest = new BondRequestTxMessage(); characteristic.setValue(bondRequest.byteSequence); if (mGatt != null) { mGatt.writeCharacteristic(characteristic); } else { Log.e(TAG, "mGatt was null when trying to write bondRequest"); } if (delayOnBond) { Log.e(TAG, "Delaying before bond"); waitFor(1000); Log.e(TAG, "Delay finished"); } isBondedOrBonding = true; device.createBond(); Log.d(TAG,"performBondWrite() finished"); }
public BondRequestTxMessage() { init(opcode, 1); } }
parent.instantCreateBondIfAllowed(); speakSlowly(); connection.writeCharacteristic(Authentication, nn(new BondRequestTxMessage().byteSequence)) .subscribe( bondRequestValue -> {
public BondRequestTxMessage() { init(opcode, 1); } }
parent.instantCreateBondIfAllowed(); speakSlowly(); connection.writeCharacteristic(Authentication, nn(new BondRequestTxMessage().byteSequence)) .subscribe( bondRequestValue -> {
parent.instantCreateBondIfAllowed(); speakSlowly(); connection.writeCharacteristic(Authentication, nn(new BondRequestTxMessage().byteSequence)) .subscribe( bondRequestValue -> {