ant-plus-next / BaseSensor
abstract BaseSensorAbstract base class for sensors that communicates over a USB connection. Extends EventEmitter to handle various events related to sensor data and status.
EventEmitternew BaseSensor(
stick):BaseSensor
Creates an instance of BaseSensor.
The USB driver used for communication with the sensor.
EventEmitter.constructor
detach():
Promise<void>
Detaches the sensor from its assigned channel and stops communication.
Promise<void>
Will throw an error if there is an issue detaching.