addListener
Start from API_LEVEL
2.0
. Please refer to API_LEVEL.
Registering connection status listening callback function.
Type
function addListener(callback: Callback): void
Parameters
Callback
Type | Description |
---|---|
(status?: boolean) => void | Connection callback function, status Connection status |
Example
import { addListener } from '@zos/ble'
// ...