Home
last modified time | relevance | path

Searched refs:gattClient (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/ble/
H A Dnapi_bluetooth_gatt_client.cpp124 env, thisVar, gattClient, in GattClientConstructor()
137 delete gattClient; in GattClientConstructor()
138 gattClient = nullptr; in GattClientConstructor()
151 return gattClient; in NapiGetGattClient()
235 *outGattClient = gattClient; in CheckGattClientNoArgc()
310 if (gattClient) { in ReadCharacteristicValue()
363 if (gattClient) { in ReadDescriptorValue()
496 if (gattClient) { in GetRssiValue()
588 if (gattClient) { in WriteCharacteristicValueEx()
644 if (gattClient) { in WriteDescriptorValueEx()
[all …]
/ohos5.0/docs/zh-cn/application-dev/connectivity/bluetooth/
H A Dgatt-development-guide.md61 2. 创建gattClient实例对象。
65 6. 断开连接,销毁gattClient实例。
161 if (!this.gattClient) {
215 if (!this.gattClient) {
216 console.info(TAG, 'no gattClient');
343 this.gattClient.close() // 8.2 如果不再使用此gattClient,则需要close
361 4. 当向gattServer写入特征值通知gattClient
468 // 3. 订阅来自gattClient的读取特征值请求时调用
505 // 4. 订阅来自gattClient的写入特征值请求时调用
542 // 5. 订阅来自gattClient的读取描述符请求时调用
[all …]
/ohos5.0/docs/en/application-dev/connectivity/bluetooth/
H A Dgatt-development-guide.md63 2. Create a **gattClient** instance.
80 gattClient: ble.GattClientDevice = undefined;
164 if (!this.gattClient) {
165 console.error(TAG, 'no gattClient');
218 if (!this.gattClient) {
219 console.info(TAG, 'no gattClient');
236 console.error(TAG, 'no gattClient or not connected');
258 console.error(TAG, 'no gattClient or not connected');
284 console.error(TAG, 'no gattClient or not connected');
307 console.error(TAG, 'no gattClient or not connected');
[all …]
/ohos5.0/foundation/communication/bluetooth/frameworks/inner/c_adapter/
H A Dohos_bt_gatt_client.cpp56 std::shared_ptr<GattClient> gattClient; member
96 client = iter->second.gattClient; in GattcFindCharacteristic()
344 clientWrapper.gattClient = nullptr; in BleGattcRegister()
367 if (clientWrapper.gattClient != nullptr) { in BleGattcUnRegister()
368 clientWrapper.gattClient = nullptr; in BleGattcUnRegister()
429 client = iter->second.gattClient; in BleGattcConnect()
447 iter->second.gattClient = client; in BleGattcConnect()
455 iter->second.gattClient = nullptr; in BleGattcConnect()
494 std::shared_ptr<GattClient> client = iter->second.gattClient; in BleGattcSetPriority()
515 std::shared_ptr<GattClient> client = iter->second.gattClient; in BleGattcDisconnect()
[all …]
/ohos5.0/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/MainAbility/model/
H A DgattInterface.ets23 const PAGE_URI_GET_GATT_CLIENT = 'pages/subManualApiTest/subGattTest/gattClient';
H A DbleInterface.ets68 message = "gattClient existed!";
H A DbleManagerInterface.ets67 message = "gattClient existed!";
H A DtestDataModels.ets369 'url' : 'pages/subManualApiTest/subGattTest/gattClient' ,
/ohos5.0/docs/zh-cn/application-dev/reference/apis-connectivity-kit/
H A Djs-apis-bluetooth-ble.md2375 let gattClient: ble.GattClientDevice = ble.createGattClientDevice("XX:XX:XX:XX:XX:XX");
2376 gattClient.connect();
2377 gattClient.getDeviceName((err: BusinessError, data: string)=> {
2423 let gattClient: ble.GattClientDevice = ble.createGattClientDevice("XX:XX:XX:XX:XX:XX");
2424 gattClient.connect();
2425 gattClient.getDeviceName().then((data: string) => {
3085 let gattClient: ble.GattClientDevice = ble.createGattClientDevice("XX:XX:XX:XX:XX:XX");
3086 gattClient.connect();
3087 let rssi = gattClient.getRssiValue((err: BusinessError, data: number)=> {
3133 gattClient.getRssiValue().then((data: number) => {
[all …]
H A Djs-apis-bluetooth.md3142 let gattClient : bluetooth.GattClientDevice = bluetooth.BLE.createGattClientDevice("XX:XX:XX:XX:XX:…
3143 let deviceName : void = gattClient.getDeviceName((err : BusinessError, data : string)=> {
3173 let gattClient : bluetooth.GattClientDevice = bluetooth.BLE.createGattClientDevice("XX:XX:XX:XX:XX:…
3174 gattClient.getDeviceName().then((data) => {
3208 let gattClient : bluetooth.GattClientDevice = bluetooth.BLE.createGattClientDevice("XX:XX:XX:XX:XX:…
3209 let ret : boolean = gattClient.connect();
3210 gattClient.getRssiValue((err : BusinessError, data : number)=> {
3240 let gattClient : bluetooth.GattClientDevice = bluetooth.BLE.createGattClientDevice("XX:XX:XX:XX:XX:…
3241 gattClient.getRssiValue().then((data : number) => {
H A Djs-apis-bluetoothManager.md4425 let gattClient = bluetoothManager.BLE.createGattClientDevice("XX:XX:XX:XX:XX:XX");
4426 gattClient.connect();
4427 let deviceName = gattClient.getDeviceName((err, data)=> {
4474 let gattClient = bluetoothManager.BLE.createGattClientDevice("XX:XX:XX:XX:XX:XX");
4475 gattClient.connect();
4476 let deviceName = gattClient.getDeviceName().then((data) => {
4521 let gattClient = bluetoothManager.BLE.createGattClientDevice("XX:XX:XX:XX:XX:XX");
4522 gattClient.connect();
4523 let rssi = gattClient.getRssiValue((err: BusinessError, data: number)=> {
4569 let gattClient = bluetoothManager.BLE.createGattClientDevice("XX:XX:XX:XX:XX:XX");
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-connectivity-kit/
H A Djs-apis-bluetooth-ble.md2362 let gattClient: ble.GattClientDevice = ble.createGattClientDevice("XX:XX:XX:XX:XX:XX");
2363 gattClient.connect();
2364 gattClient.getDeviceName((err: BusinessError, data: string)=> {
2410 let gattClient: ble.GattClientDevice = ble.createGattClientDevice("XX:XX:XX:XX:XX:XX");
2411 gattClient.connect();
2412 gattClient.getDeviceName().then((data: string) => {
3072 let gattClient: ble.GattClientDevice = ble.createGattClientDevice("XX:XX:XX:XX:XX:XX");
3073 gattClient.connect();
3074 let rssi = gattClient.getRssiValue((err: BusinessError, data: number)=> {
3120 gattClient.getRssiValue().then((data: number) => {
[all …]
H A Djs-apis-bluetooth.md3143 let gattClient : bluetooth.GattClientDevice = bluetooth.BLE.createGattClientDevice("XX:XX:XX:XX:XX:…
3144 let deviceName : void = gattClient.getDeviceName((err : BusinessError, data : string)=> {
3174 let gattClient : bluetooth.GattClientDevice = bluetooth.BLE.createGattClientDevice("XX:XX:XX:XX:XX:…
3175 gattClient.getDeviceName().then((data) => {
3209 let gattClient : bluetooth.GattClientDevice = bluetooth.BLE.createGattClientDevice("XX:XX:XX:XX:XX:…
3210 let ret : boolean = gattClient.connect();
3211 gattClient.getRssiValue((err : BusinessError, data : number)=> {
3241 let gattClient : bluetooth.GattClientDevice = bluetooth.BLE.createGattClientDevice("XX:XX:XX:XX:XX:…
3242 gattClient.getRssiValue().then((data : number) => {
H A Djs-apis-bluetoothManager.md4425 let gattClient = bluetoothManager.BLE.createGattClientDevice("XX:XX:XX:XX:XX:XX");
4426 gattClient.connect();
4427 let deviceName = gattClient.getDeviceName((err, data)=> {
4474 let gattClient = bluetoothManager.BLE.createGattClientDevice("XX:XX:XX:XX:XX:XX");
4475 gattClient.connect();
4476 let deviceName = gattClient.getDeviceName().then((data) => {
4521 let gattClient = bluetoothManager.BLE.createGattClientDevice("XX:XX:XX:XX:XX:XX");
4522 gattClient.connect();
4523 let rssi = gattClient.getRssiValue((err: BusinessError, data: number)=> {
4569 let gattClient = bluetoothManager.BLE.createGattClientDevice("XX:XX:XX:XX:XX:XX");
[all …]