• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #include "bluetooth_log.h"
16 #include "taihe_bluetooth_gatt_server_callback.h"
17 
18 namespace OHOS {
19 namespace Bluetooth {
20 using namespace std;
21 
TaiheGattServerCallback()22 TaiheGattServerCallback::TaiheGattServerCallback()
23 {}
24 
OnCharacteristicReadRequest(const BluetoothRemoteDevice & device,GattCharacteristic & characteristic,int requestId)25 void TaiheGattServerCallback::OnCharacteristicReadRequest(
26     const BluetoothRemoteDevice &device, GattCharacteristic &characteristic, int requestId)
27 {
28 }
29 
OnCharacteristicWriteRequest(const BluetoothRemoteDevice & device,GattCharacteristic & characteristic,int requestId)30 void TaiheGattServerCallback::OnCharacteristicWriteRequest(const BluetoothRemoteDevice &device,
31     GattCharacteristic &characteristic, int requestId)
32 {
33 }
34 
OnConnectionStateUpdate(const BluetoothRemoteDevice & device,int state)35 void TaiheGattServerCallback::OnConnectionStateUpdate(const BluetoothRemoteDevice &device, int state)
36 {
37 }
38 
OnDescriptorWriteRequest(const BluetoothRemoteDevice & device,GattDescriptor & descriptor,int requestId)39 void TaiheGattServerCallback::OnDescriptorWriteRequest(const BluetoothRemoteDevice &device,
40     GattDescriptor &descriptor, int requestId)
41 {
42 }
43 
OnDescriptorReadRequest(const BluetoothRemoteDevice & device,GattDescriptor & descriptor,int requestId)44 void TaiheGattServerCallback::OnDescriptorReadRequest(const BluetoothRemoteDevice &device,
45     GattDescriptor &descriptor, int requestId)
46 {
47 }
48 
OnMtuUpdate(const BluetoothRemoteDevice & device,int mtu)49 void TaiheGattServerCallback::OnMtuUpdate(const BluetoothRemoteDevice &device, int mtu)
50 {
51 }
52 
OnNotificationCharacteristicChanged(const BluetoothRemoteDevice & device,int ret)53 void TaiheGattServerCallback::OnNotificationCharacteristicChanged(const BluetoothRemoteDevice &device, int ret)
54 {
55 }
56 } // namespace Bluetooth
57 } // namespace OHOS