You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1ef799c
Browse filesBrowse the repository at this point in the historyBrowse files
/** Motion and environment sensors — accelerometer, gyroscope, magnetometer, compass, barometer and orientation — as live events. Start a sensor, listen for its event, stop it when done. Every sensor stops on its own when the page's last event stream closes, so a closed page never keeps one running. A sensor the device lacks fails with 501. */
380
+
/** Motion and environment sensors — accelerometer, gyroscope, magnetometer, compass, barometer and orientation — as live events. Start a sensor, listen for its event, stop it when done. A sensor stops on its own once nothing listens to its event any more — the accelerometer while shakes are listened to counts — so a closed page never keeps one running. A sensor the device lacks fails with 501. */
/** Starts scanning; results arrive through `onScanResult`. Starting again replaces the running scan. */
112
+
/** Starts scanning; results arrive through `onScanResult`, so listen first: without a listener it fails with 409. Starting again replaces the running scan, and the scan stops once nothing listens to it. */
/** Subscribes to a characteristic; values arrive through `onNotification`. */
167
+
/** Subscribes to a characteristic; values arrive through `onNotification`, so listen first: without a listener it fails with 409. Every subscription ends once that has no listener left; peripherals stay connected. */
0 commit comments