Methods
openDevice
- openDevice(serialNumber): Promise<IDevice>
Returns Promise<IDevice>
- A promise that resolves to an
interface for the Device.
startMonitoring
- startMonitoring(): Promise<boolean>
Returns Promise<boolean>
- A promise that resolves to True if
device monitoring was started successfully, otherwise false.
stopMonitoring
- stopMonitoring(): Promise<boolean>
Returns Promise<boolean>
- A promise that resulves to True if
device monitoring was stopped successfully, otherwise false.
Interface that provides the methods that may be used to open a device and start/stop monitoring device connection/disconnection events.