public override void OnCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, GattStatus status) { if (characteristic.Equals(readCharacteristic)) { ReceivePacket(characteristic.GetValue()); } }
// Overridden from BaseLeConnection public override void OnCharacteristicChanged(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) { if (characteristic.Equals(readCharacteristic)) { lastPacket = characteristic.GetValue(); } }