ReadonlyconnectionFired when the value of a characteristic changes.
Fired when the connection state changes.
ReadonlyservicesThe addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsConnects to the GATT server.
Disconnects from the GATT server.
Discovers services offered by the GATT server.
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Reads the RSSI (Received Signal Strength Indication) of the remote device.
A Promise resolving to the RSSI value.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptions
Permissions
bluetooth