BluetoothRemoteGATTCharacteristic: startNotifications() method

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("Bluetooth API")}}{{SeeCompatTable}}{{SecureContext_Header}}

The **BluetoothRemoteGATTCharacteristic.startNotifications()** method returns a {{jsxref("Promise")}} to the BluetoothRemoteGATTCharacteristic instance when there is an active notification on it.

Syntax

js-nolint
startNotifications()

Parameters

None.

Return value

A {{jsxref("Promise")}} to the BluetoothRemoteGATTCharacteristic instance.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}