Lines Matching refs:BLE

1 # @ohos.bluetooth.ble (Bluetooth BLE Module)
89 Obtains the Bluetooth Low Energy (BLE) devices connected to this device.
99 | Array<string> | Addresses of the BLE devices connected to this device. For security purpose…
129 Starts BLE scanning.
162 console.info('BLE scan device find result = '+ JSON.stringify(data));
187 Stops BLE scanning.
223 Starts BLE advertising.
235 | setting | [AdvertiseSetting](#advertisesetting) | Yes | Settings related to BLE advertising…
236 | advData | [AdvertiseData](#advertisedata) | Yes | Content of the BLE advertisement pa…
237 | advResponse | [AdvertiseData](#advertisedata) | No | Response to the BLE scan request.|
304 Stops BLE advertising.
340 Starts BLE advertising. This API uses an asynchronous callback to return the result.
350 …AdvertisingParams](#advertisingparams11) | Yes | Parameters for starting BLE advertising. …
432 Starts BLE advertising. This API uses a promise to return the result.
442 … | [AdvertisingParams](#advertisingparams11) | Yes | Parameters for starting BLE advertising. |
448 | Promise<number> | Promise used to return the BLE advertisement ID.|
525 Temporarily enables BLE advertising. This API uses an asynchronous callback to return the result.
535 …(#advertisingenableparams11) | Yes | Parameters for temporarily enabling BLE advertising. |
629 Temporarily enables BLE advertising. This API uses a promise to return the result.
639 …(#advertisingenableparams11) | Yes | Parameters for temporarily enabling BLE advertising. |
737 Disables BLE advertising temporarily. This API uses an asynchronous callback to return the result.
747 …advertisingdisableparams11) | Yes | Parameters for temporarily disabling BLE advertising. |
838 Disables BLE advertising temporarily. This API uses a promise to return the result.
848 …advertisingdisableparams11) | Yes | Parameters for temporarily disabling BLE advertising. |
942 Stops BLE advertising. This API uses an asynchronous callback to return the result.
1040 Stops BLE advertising. This API uses a promise to return the result.
1142 Subscribes to BLE advertising status. This API uses an asynchronous callback to return the result.
1185 Unsubscribes from BLE advertising status.
1229 Subscribes to BLE device discovery events. This API uses an asynchronous callback to return the res…
1241 …vent type. The value is **BLEDeviceFind**, which indicates an event of discovering a BLE device. |
1274 Unsubscribes from BLE device discovery events.
1286 …type. The value is **BLEDeviceFind**, which indicates an event of discovering a BLE device. |
1338 | service | [GattService](#gattservice) | Yes | Service to add. Settings related to BLE advertisi…
2043 Subscribes to BLE connection state changes. This API uses an asynchronous callback to return the re…
2055 …es | Event type. The value is **connectionStateChange**, which indicates BLE connection state ch…
2056 …tate](#bleconnectionchangestate)> | Yes | Callback used to return the BLE connection state. …
2090 Unsubscribes from BLE connection state changes.
2102 …es | Event type. The value is **connectionStateChange**, which indicates BLE connection state ch…
2219 Connects to the remote BLE device.
2256 Disconnects from the remote BLE device.
2330 Obtains the name of the remote BLE device. This API uses an asynchronous callback to return the res…
2342 | callback | AsyncCallback<string> | Yes | Callback used to return the remote BLE device na…
2378 Obtains the name of the remote BLE device. This API uses a promise to return the result.
2390 | Promise<string> | Promise used to return the remote BLE device name.|
2425 Obtains all services of the remote BLE device. This API uses an asynchronous callback to return the…
2482 Obtains all services of the remote BLE device. This API uses a promise to return the result.
2529 Reads the characteristic value of the specific service of the remote BLE device. This API uses an a…
2599 Reads the characteristic value of the specific service of the remote BLE device. This API uses a pr…
2665 Reads the descriptor contained in the specific characteristic of the remote BLE device. This API us…
2728 Reads the descriptor contained in the specific characteristic of the remote BLE device. This API us…
2787 Writes a characteristic value to the remote BLE device. This API uses an asynchronous callback to r…
2799 …ic](#blecharacteristic) | Yes | Binary value and other parameters of the BLE device characterist…
2854 Writes a characteristic value to the remote BLE device. This API uses a promise to return the resul…
2866 …ic](#blecharacteristic) | Yes | Binary value and other parameters of the BLE device characterist…
2920 Writes binary data to the specific descriptor of the remote BLE device. This API uses an asynchrono…
2932 …criptor](#bledescriptor) | Yes | Binary value and other parameters of the BLE device descriptor.|
2980 Writes binary data to the specific descriptor of the remote BLE device. This API uses a promise to …
2992 …criptor](#bledescriptor) | Yes | Binary value and other parameters of the BLE device descriptor.|
3041 Obtains the RSSI of the remote BLE device. It can be used only after a connection is set up by call…
3088 Obtains the RSSI of the remote BLE device. It can be used only after a connection is set up by call…
3133 … unit (MTU) that can be transmitted between the GATT client and its remote BLE device. This API ca…
3188 | characteristic | [BLECharacteristic](#blecharacteristic) | Yes | BLE characteristic to listen f…
3252 | characteristic | [BLECharacteristic](#blecharacteristic) | Yes | BLE characteristic to listen f…
3315 | characteristic | [BLECharacteristic](#blecharacteristic) | Yes | BLE characteristic to listen f…
3379 | characteristic | [BLECharacteristic](#blecharacteristic) | Yes | BLE characteristic to listen f…
3430 Subscribes to BLE characteristic changes. Before calling this API, use [setCharacteristicChangeNoti…
3477 Unsubscribes from BLE characteristic changes.
3519 Subscribes to BLE connection state changes. This API uses an asynchronous callback to return the re…
3531 … | Event type. The value is **BLEConnectionStateChange**, which indicates BLE connection state ch…
3532 …tate](#bleconnectionchangestate)> | Yes | Callback used to return the BLE connection state. …
3565 Unsubscribes from BLE connection state changes.
3577 … | Event type. The value is **BLEConnectionStateChange**, which indicates BLE connection state ch…
3724 Represents a BLE descriptor.
3858 …ate](js-apis-bluetooth-constant.md#profileconnectionstate) | Yes | Yes | BLE connection state. …
3880 Defines the BLE advertising parameters.
3888 | interval | number | Yes | Yes | Interval for BLE advertising. The minimum value is **160*…
3895 Represents the content of a BLE advertising packet, which is 31 bytes in size.
3910 Defines the parameters for starting BLE advertising for the first time.
3923 Defines the parameters for temporarily enabling BLE advertising.
3934 Defines the parameters for temporarily disabling BLE advertising.
3955 Defines the content of a BLE advertisement packet.
3991 | deviceId | string | No | Address of the BLE device to filt…
3992 | name | string | No | Name of the BLE device to filter.…
4068 Enumerates the hardware match modes of BLE scan filters.
4087 | STARTED<sup>11+</sup> | 1 | The BLE advertising is started for the first time. |
4088 | ENABLED<sup>11+</sup> | 2 | The BLE advertising is enabled temporarily. |
4089 | DISABLED<sup>11+</sup> | 3 | The BLE advertising is disabled temporarily. |
4090 | STOPPED<sup>11+</sup> | 4 | The BLE advertising is stopped. |