| Index: device/bluetooth/bluetooth_local_gatt_characteristic.h
|
| diff --git a/device/bluetooth/bluetooth_local_gatt_characteristic.h b/device/bluetooth/bluetooth_local_gatt_characteristic.h
|
| index 5511c79a561700c44c2af3e5cd296ec372ce83bb..d573caccc08b26d2da13556667f7271191fcb240 100644
|
| --- a/device/bluetooth/bluetooth_local_gatt_characteristic.h
|
| +++ b/device/bluetooth/bluetooth_local_gatt_characteristic.h
|
| @@ -55,15 +55,18 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLocalGattCharacteristic
|
| Permissions permissions,
|
| BluetoothLocalGattService* service);
|
|
|
| - // Notify that the remote central that the value of this characteristic has
|
| - // been changed and the new value is |new_value|. |indicate| should be set to
|
| - // true if we want to use an indication instead of a notification. An
|
| - // indication waits for a response from the remote, making it more reliable
|
| - // but notifications may be faster.
|
| + // Notify the remote device |device| that the value of characteristic
|
| + // |characteristic| has changed and the new value is |new_value|. |indicate|
|
| + // should be set to true if we want to use an indication instead of a
|
| + // notification. An indication waits for a response from the remote, making
|
| + // it more reliable but notifications may be faster.
|
| virtual NotificationStatus NotifyValueChanged(
|
| + const BluetoothDevice* device,
|
| const std::vector<uint8_t>& new_value,
|
| bool indicate) = 0;
|
|
|
| + virtual BluetoothLocalGattService* GetService() const = 0;
|
| +
|
| protected:
|
| BluetoothLocalGattCharacteristic();
|
| ~BluetoothLocalGattCharacteristic() override;
|
|
|