Home
last modified time | relevance | path

Searched refs:ble (Results 1 – 25 of 117) sorted by relevance

12345

/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.10.1/
H A Dchangelogs-bluetooth.md13 |@ohos.bluetooth.ble | [js-apis-bluetooth-ble.md](../../../application-dev/reference/apis/js-apis-b…
79 |createGattServer | [ble.createGattServer](../../../application-dev/reference/apis/js-apis-bluetoot…
82 |startBLEScan | [ble.startBLEScan](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md…
83 |stopBLEScan | [ble.stopBLEScan](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#b…
84 |on('BLEDeviceFind') | [ble.on('BLEDeviceFind')](../../../application-dev/reference/apis/js-apis-bl…
108 |startAdvertising | [ble.startAdvertising](../../../application-dev/reference/apis/js-apis-bluetoot…
109 |stopAdvertising | [ble.stopAdvertising](../../../application-dev/reference/apis/js-apis-bluetooth-
199 |@ohos.bluetooth.ble|[properties](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#…
200 |@ohos.bluetooth.ble|[deviceName](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#…
201 |@ohos.bluetooth.ble|[includeDeviceName](../../../application-dev/reference/apis/js-apis-bluetooth-
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/discovery/ble/
H A Ddisc_ble.gni18 disc_dep_dir = "dsoftbus_enhance/core/discovery/ble"
28 "$dsoftbus_root_path/core/discovery/ble/dispatcher/include",
29 "$dsoftbus_root_path/core/discovery/ble/approach_ble/include",
30 "$dsoftbus_root_path/core/discovery/ble/share_ble/include",
31 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/include",
32 "$dsoftbus_root_path/core/discovery/ble/touch_ble/include",
33 "$dsoftbus_root_path/core/discovery/ble/virtual_link_ble/include",
47 "$dsoftbus_root_path/core/discovery/ble/dispatcher/src/disc_ble_dispatcher.c",
48 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/src/disc_ble_utils.c",
49 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/src/disc_ble.c",
[all …]
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.10.1/
H A Dchangelogs-bluetooth.md13 |@ohos.bluetooth.ble | [js-apis-bluetooth-ble.md](../../../application-dev/reference/apis/js-apis-b…
79 |createGattServer | [ble.createGattServer](../../../application-dev/reference/apis/js-apis-bluetoot…
82 |startBLEScan | [ble.startBLEScan](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md…
83 |stopBLEScan | [ble.stopBLEScan](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#b…
84 |on('BLEDeviceFind') | [ble.on('BLEDeviceFind')](../../../application-dev/reference/apis/js-apis-bl…
108 |startAdvertising | [ble.startAdvertising](../../../application-dev/reference/apis/js-apis-bluetoot…
109 |stopAdvertising | [ble.stopAdvertising](../../../application-dev/reference/apis/js-apis-bluetooth-
199 |@ohos.bluetooth.ble|[properties](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#…
200 |@ohos.bluetooth.ble|[deviceName](../../../application-dev/reference/apis/js-apis-bluetooth-ble.md#…
201 |@ohos.bluetooth.ble|[includeDeviceName](../../../application-dev/reference/apis/js-apis-bluetooth-
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-connectivity-kit/
H A Djs-apis-bluetooth-ble.md1 # @ohos.bluetooth.ble (蓝牙ble模块)
3 ble模块提供了对蓝牙操作和管理的方法。
50 let gattServer: ble.GattServer = ble.createGattServer();
1437 let server: ble.GattServer = ble.createGattServer();
1475 let server: ble.GattServer = ble.createGattServer();
1529 let gattServer: ble.GattServer = ble.createGattServer();
1694 let gattServer: ble.GattServer = ble.createGattServer();
1790 let gattServer: ble.GattServer = ble.createGattServer();
1891 let gattServer: ble.GattServer = ble.createGattServer();
1987 let gattServer: ble.GattServer = ble.createGattServer();
[all …]
H A Djs-apis-bluetoothManager.md8 > 从API Version 10 开始,该接口不再维护,推荐使用[`@ohos.bluetooth.ble`](js-apis-bluetooth-ble.md)等相关profile接口。
1742 > 从API version 9开始支持,从API version 10开始废弃。建议使用[ble.startBLEScan](js-apis-bluetooth-ble.md#blestopble…
2609 > 从API version 9开始支持,从API version 10开始废弃。建议使用[ble.GattServer](js-apis-bluetooth-ble.md#GattServer)替…
2855 > 从API version 9开始支持,从API version 10开始废弃。建议使用[ble.GattServer#close](js-apis-bluetooth-ble.md#close)…
4647 > 从API version 9开始支持,从API version 10开始废弃。建议使用[ble.GattService](js-apis-bluetooth-ble.md#gattservice…
4845 > 从API version 9开始支持,从API version 10开始废弃。建议使用[ble.ScanFilter](js-apis-bluetooth-ble.md#scanfilter)替…
4869 > 从API version 9开始支持,从API version 10开始废弃。建议使用[ble.ScanOptions](js-apis-bluetooth-ble.md#scanoptions…
4885 > 从API version 9开始支持,从API version 10开始废弃。建议使用[ble.ScanDuty](js-apis-bluetooth-ble.md#scanduty)替代。
4901 > 从API version 9开始支持,从API version 10开始废弃。建议使用[ble.MatchMode](js-apis-bluetooth-ble.md#matchmode)替代。
4916 > 从API version 9开始支持,从API version 10开始废弃。建议使用[ble.ScanResult](js-apis-bluetooth-ble.md#scanresult)替…
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/connection/ble/
H A Dconn_ble.gni36 "$dsoftbus_root_path/core/connection/ble/src/softbus_conn_ble_virtual.c",
41 "$dsoftbus_root_path/core/connection/ble/include",
48 "$dsoftbus_root_path/core/connection/ble/src/softbus_conn_ble_virtual.c",
53 "$dsoftbus_root_path/core/connection/ble/include",
63 "$dsoftbus_root_path/core/connection/ble/src/softbus_conn_ble_client.c",
64 "$dsoftbus_root_path/core/connection/ble/src/softbus_conn_ble_connection.c",
65 "$dsoftbus_root_path/core/connection/ble/src/softbus_conn_ble_manager.c",
67 "$dsoftbus_root_path/core/connection/ble/src/softbus_conn_ble_server.c",
68 "$dsoftbus_root_path/core/connection/ble/src/softbus_conn_ble_trans.c",
71 "$dsoftbus_root_path/core/connection/ble/include",
[all …]
/ohos5.0/docs/zh-cn/application-dev/connectivity/bluetooth/
H A Dble-development-guide.md34 1. import需要的ble模块。
42 import { ble } from '@kit.ConnectivityKit';
53 ble.on('advertisingStateChange', (data: ble.AdvertisingStateChangeInfo) => {
65 let setting: ble.AdvertiseSetting = {
89 let advData: ble.AdvertiseData = {
95 let advResponse: ble.AdvertiseData = {
150 ble.off('advertisingStateChange', (data: ble.AdvertisingStateChangeInfo) => {
166 1. import需要的ble模块。
206 ble.on('BLEDeviceFind', (data: Array<ble.ScanResult>) => {
378 ble.off('BLEDeviceFind', (data: Array<ble.ScanResult>) => { // 取消订阅扫描结果
[all …]
H A Dgatt-development-guide.md60 1. import需要的ble模块。
69 import { ble } from '@kit.ConnectivityKit';
87 let descriptor: ble.BLEDescriptor = {
98 let descriptors: Array<ble.BLEDescriptor> = [];
109 let characteristic: ble.BLECharacteristic = {
128 private logDescriptor(des: ble.BLEDescriptor) {
358 1. import需要的ble模块。
367 import { ble } from '@kit.ConnectivityKit';
383 let descriptor: ble.BLEDescriptor = {
405 let characteristic: ble.BLECharacteristic = {
[all …]
H A Dbluetooth-overview.md13ble模块(低功耗蓝牙):BLE是Bluetooth Low Energy的缩写,意为“低功耗蓝牙”。它是一种能够在低功耗情况下进行通信的蓝牙技术,与传统蓝牙相比,BLE的功耗更低,适用于需要长时…
21 …备提供服务,也可以从其他设备获取服务。详情请参考[@ohos.bluetooth.ble API参考](../../reference/apis-connectivity-kit/js-apis-…
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/ble/
H A DBUILD.gn22 "$dsoftbus_root_path/tests/core/connection/ble/mock",
33 "$dsoftbus_root_path/core/connection/ble/include",
36 "$dsoftbus_root_path/core/connection/ble/channel",
37 "$dsoftbus_root_path/core/connection/ble/src",
123 "$dsoftbus_root_path/core/connection/ble/include",
132 "$dsoftbus_root_path/core/connection/ble/src/softbus_conn_ble_manager.c",
158 "$dsoftbus_root_path/core/connection/ble/include",
164 "$dsoftbus_root_path/tests/core/connection/ble/mock",
168 "$dsoftbus_root_path/core/connection/ble/src/softbus_conn_ble_trans.c",
192 "$dsoftbus_root_path/core/connection/ble/include",
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/utils/src/
H A Dlnn_connection_addr_utils.c45 … return memcmp(addr1->info.ble.udidHash, addr2->info.ble.udidHash, SHORT_UDID_HASH_LEN) == 0 || in LnnIsSameConnectionAddr()
46 strncmp(addr1->info.ble.bleMac, addr2->info.ble.bleMac, BT_MAC_LEN) == 0; in LnnIsSameConnectionAddr()
48 return memcmp(addr1->info.ble.udidHash, addr2->info.ble.udidHash, UDID_HASH_LEN) == 0 || in LnnIsSameConnectionAddr()
49 strncmp(addr1->info.ble.bleMac, addr2->info.ble.bleMac, BT_MAC_LEN) == 0; in LnnIsSameConnectionAddr()
82 strlen(addr->info.ble.bleMac)) != EOK) { in LnnConvertAddrToOption()
209 connInfo->info.bleInfo.protocol = addr->info.ble.protocol; in LnnConvertAddrToAuthConnInfo()
210 connInfo->info.bleInfo.psm = addr->info.ble.psm; in LnnConvertAddrToAuthConnInfo()
248 addr->info.ble.protocol = connInfo->info.bleInfo.protocol; in LnnConvertAuthConnInfoToAddr()
249 addr->info.ble.psm = connInfo->info.bleInfo.psm; in LnnConvertAuthConnInfoToAddr()
289 if (strnlen(addr->info.ble.bleMac, BT_MAC_LEN) == 0 || in LnnIsConnectionAddrInvalid()
[all …]
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v4.0-beta2/
H A Djs-apidiff-communication.md87 |新增|NA|类名:ble;<br>方法or属性:type ProfileConnectionState = constant.ProfileConnectionState;|@ohos.bluet…
88 |新增|NA|类名:ble;<br>方法or属性:function createGattServer(): GattServer;|@ohos.bluetooth.ble.d.ts|
89 |新增|NA|类名:ble;<br>方法or属性:function createGattClientDevice(deviceId: string): GattClientDevice;|@ohos…
90 |新增|NA|类名:ble;<br>方法or属性:function getConnectedBLEDevices(): Array\<string>;|@ohos.bluetooth.ble.d.t…
91 |新增|NA|类名:ble;<br>方法or属性:function startBLEScan(filters: Array\<ScanFilter>, options?: ScanOptions):…
92 |新增|NA|类名:ble;<br>方法or属性:function stopBLEScan(): void;|@ohos.bluetooth.ble.d.ts|
93 …类名:ble;<br>方法or属性:function startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, adv…
94 |新增|NA|类名:ble;<br>方法or属性:function stopAdvertising(): void;|@ohos.bluetooth.ble.d.ts|
95 |新增|NA|类名:ble;<br>方法or属性:function on(type: 'BLEDeviceFind', callback: Callback\<Array\<ScanResult>>…
96 |新增|NA|类名:ble;<br>方法or属性:function off(type: 'BLEDeviceFind', callback?: Callback\<Array\<ScanResult…
[all …]
/ohos5.0/docs/en/application-dev/connectivity/bluetooth/
H A Dble-development-guide.md34 1. Import the **ble** module.
43 import { ble } from '@kit.ConnectivityKit';
54 ble.on('advertisingStateChange', (data: ble.AdvertisingStateChangeInfo) => {
66 let setting: ble.AdvertiseSetting = {
90 let advData: ble.AdvertiseData = {
96 let advResponse: ble.AdvertiseData = {
151 ble.off('advertisingStateChange', (data: ble.AdvertisingStateChangeInfo) => {
167 1. Import the **ble** module.
208 ble.on('BLEDeviceFind', (data: Array<ble.ScanResult>) => {
380ble.off('BLEDeviceFind', (data: Array<ble.ScanResult>) => { // Unsubscribe from the scanning resul…
[all …]
H A Dgatt-development-guide.md16 … APIs and sample code, see [@ohos.bluetooth.ble](../../reference/apis-connectivity-kit/js-apis-blu…
62 1. Import the **ble** module.
72 import { ble } from '@kit.ConnectivityKit';
80 gattClient: ble.GattClientDevice = undefined;
90 let descriptor: ble.BLEDescriptor = {
112 let characteristic: ble.BLECharacteristic = {
361 1. Import the **ble** module.
371 import { ble } from '@kit.ConnectivityKit';
378 gattServer: ble.GattServer = undefined;
387 let descriptor: ble.BLEDescriptor = {
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
H A Dlnn_lane_common.c47 if (memcpy_s(connInfo->connInfo.ble.bleMac, BT_MAC_LEN, in BleInfoProc()
48 linkInfo->linkInfo.ble.bleMac, BT_MAC_LEN) != EOK) { in BleInfoProc()
52 if (memcpy_s(connInfo->connInfo.ble.deviceIdHash, UDID_HASH_LEN, in BleInfoProc()
53 linkInfo->linkInfo.ble.deviceIdHash, UDID_HASH_LEN) != EOK) { in BleInfoProc()
57 connInfo->connInfo.ble.protoType = linkInfo->linkInfo.ble.protoType; in BleInfoProc()
58 connInfo->connInfo.ble.psm = linkInfo->linkInfo.ble.psm; in BleInfoProc()
153 if (memcpy_s(connInfo->connInfo.ble.bleMac, BT_MAC_LEN, in CocInfoProc()
154 linkInfo->linkInfo.ble.bleMac, BT_MAC_LEN) != EOK) { in CocInfoProc()
158 if (memcpy_s(connInfo->connInfo.ble.deviceIdHash, UDID_HASH_LEN, in CocInfoProc()
159 linkInfo->linkInfo.ble.deviceIdHash, UDID_HASH_LEN) != EOK) { in CocInfoProc()
[all …]
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/
H A DBUILD.gn51 "src/ble/napi_bluetooth_ble.cpp",
54 "src/ble/napi_bluetooth_ble_utils.cpp",
55 "src/ble/napi_bluetooth_gatt_client.cpp",
56 "src/ble/napi_bluetooth_gatt_client_callback.cpp",
57 "src/ble/napi_bluetooth_gatt_server.cpp",
58 "src/ble/napi_bluetooth_gatt_server_callback.cpp",
140 "src/ble/napi_bluetooth_ble.cpp",
143 "src/ble/napi_bluetooth_ble_utils.cpp",
144 "src/ble/napi_bluetooth_gatt_client.cpp",
146 "src/ble/napi_bluetooth_gatt_server.cpp",
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-connectivity-kit/
H A Djs-apis-bluetooth-ble.md37 let gattServer: ble.GattServer = ble.createGattServer();
1424 let server: ble.GattServer = ble.createGattServer();
1462 let server: ble.GattServer = ble.createGattServer();
1516 let gattServer: ble.GattServer = ble.createGattServer();
1580 let gattServer: ble.GattServer = ble.createGattServer();
1637 let gattServer: ble.GattServer = ble.createGattServer();
1681 let gattServer: ble.GattServer = ble.createGattServer();
1777 let gattServer: ble.GattServer = ble.createGattServer();
1878 let gattServer: ble.GattServer = ble.createGattServer();
1974 let gattServer: ble.GattServer = ble.createGattServer();
[all …]
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/
H A DBUILD.gn32 "ble:BleClientTest",
33 "ble:BleConnectionManagerTest",
34 "ble:BleConnectionServiceTest",
35 "ble:BleTransTest",
36 "ble:ConnectionBleSwitchTest",
37 "ble:ConnectionBleTest",
61 deps += [ "ble/fuzztest/bleconnection_fuzzer:BleConnectionFuzzTest" ]
/ohos5.0/foundation/communication/dsoftbus/tests/core/discovery/ble/softbus_ble/
H A DBUILD.gn30 "$dsoftbus_root_path/core/discovery/ble/dispatcher/include",
33 "$dsoftbus_root_path/core/discovery/ble/approach_ble/include",
34 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/include",
46 "$dsoftbus_root_path/core/connection/ble/include",
47 "$dsoftbus_root_path/core/connection/ble/src",
52 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/include",
53 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/src",
76 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/src/disc_ble_utils.c",
88 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/include",
/ohos5.0/docs/en/release-notes/api-diff/v4.0-Release-vs-v4.0-beta2/
H A Djs-apidiff-communication.md87 …ed|NA|Class name: ble;<br>Method or attribute name: type ProfileConnectionState = constant.Profile…
88 |Added|NA|Class name: ble;<br>Method or attribute name: function createGattServer(): GattServer;|@o…
89 …NA|Class name: ble;<br>Method or attribute name: function createGattClientDevice(deviceId: string)…
90 |Added|NA|Class name: ble;<br>Method or attribute name: function getConnectedBLEDevices(): Array\<s…
91 …ss name: ble;<br>Method or attribute name: function startBLEScan(filters: Array\<ScanFilter>, opti…
92 |Added|NA|Class name: ble;<br>Method or attribute name: function stopBLEScan(): void;|@ohos.bluetoo…
93ble;<br>Method or attribute name: function startAdvertising(setting: AdvertiseSetting, advData: Ad…
94 |Added|NA|Class name: ble;<br>Method or attribute name: function stopAdvertising(): void;|@ohos.blu…
95 …s name: ble;<br>Method or attribute name: function on(type: 'BLEDeviceFind', callback: Callback\<A…
96 … name: ble;<br>Method or attribute name: function off(type: 'BLEDeviceFind', callback?: Callback\<…
[all …]
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/
H A Djs-apidiff-communication.md80 |新增|NA|类名:ble;<br>方法or属性:type ProfileConnectionState = constant.ProfileConnectionState;|@ohos.bluet…
81 |新增|NA|类名:ble;<br>方法or属性:function createGattServer(): GattServer;|@ohos.bluetooth.ble.d.ts|
82 |新增|NA|类名:ble;<br>方法or属性:function createGattClientDevice(deviceId: string): GattClientDevice;|@ohos…
83 |新增|NA|类名:ble;<br>方法or属性:function getConnectedBLEDevices(): Array\<string>;|@ohos.bluetooth.ble.d.t…
84 |新增|NA|类名:ble;<br>方法or属性:function startBLEScan(filters: Array\<ScanFilter>, options?: ScanOptions):…
85 |新增|NA|类名:ble;<br>方法or属性:function stopBLEScan(): void;|@ohos.bluetooth.ble.d.ts|
86 …类名:ble;<br>方法or属性:function startAdvertising(setting: AdvertiseSetting, advData: AdvertiseData, adv…
87 |新增|NA|类名:ble;<br>方法or属性:function stopAdvertising(): void;|@ohos.bluetooth.ble.d.ts|
88 |新增|NA|类名:ble;<br>方法or属性:function on(type: 'BLEDeviceFind', callback: Callback\<Array\<ScanResult>>…
89 |新增|NA|类名:ble;<br>方法or属性:function off(type: 'BLEDeviceFind', callback?: Callback\<Array\<ScanResult…
[all …]
/ohos5.0/foundation/communication/dsoftbus/adapter/common/net/bluetooth/
H A Dnet_bluetooth.gni23 "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/include",
27 "$dsoftbus_root_path/adapter/common/net/bluetooth/ble/softbus_adapter_ble_gatt_client.c",
28 "$dsoftbus_root_path/adapter/common/net/bluetooth/ble/softbus_adapter_ble_gatt_server.c",
31 "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/src/softbus_ble_utils.c",
39 …"$dsoftbus_root_path/dsoftbus_enhance/adapter/common/net/bluetooth/broadcast/adapter/ble/adapter_b…
44 …adapter_ble_src += [ "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/adapter/ble/src/s…
/ohos5.0/foundation/communication/dsoftbus/tests/core/discovery/ble/softbus_ble_mock/
H A DBUILD.gn27 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/src/disc_ble.c",
28 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/src/disc_ble_utils.c",
43 "$dsoftbus_root_path/core/discovery/ble/dispatcher/include",
44 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/include",
45 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/src",
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/utils/
H A Dlnn_bus_center_utils_test.cpp80 (void)strcpy_s(addr1.info.ble.bleMac, BT_MAC_LEN, NODE1_BLE_MAC);
81 (void)memcpy_s(addr1.info.ble.udidHash, UDID_HASH_LEN, NODE1_UDID_HASH, UDID_HASH_LEN);
88 (void)strcpy_s(addr2.info.ble.bleMac, BT_MAC_LEN, NODE2_BLE_MAC);
89 (void)memcpy_s(addr2.info.ble.udidHash, UDID_HASH_LEN, NODE2_UDID_HASH, UDID_HASH_LEN);
136 (void)strcpy_s(addr.info.ble.bleMac, BT_MAC_LEN, NODE1_BLE_MAC);
137 (void)memcpy_s(addr.info.ble.udidHash, UDID_HASH_LEN, NODE1_UDID_HASH, UDID_HASH_LEN);
226 (void)strcpy_s(addr.info.ble.bleMac, BT_MAC_LEN, NODE1_BLE_MAC);
227 (void)memcpy_s(addr.info.ble.udidHash, UDID_HASH_LEN, NODE1_UDID_HASH, UDID_HASH_LEN);
/ohos5.0/foundation/communication/dsoftbus/
H A DKconfig24 bool "Enable discovery with ble"
27 Answer Y to enable discovery with ble
43 bool "Enable connection with ble"
46 Answer Y to enable connection with ble

12345