UNPKG

bt-sensors-plugin-sk

Version:

Bluetooth Sensors for Signalk - see https://www.npmjs.com/package/bt-sensors-plugin-sk for a list of supported classes

25 lines (21 loc) 585 B
const BTSensor = require("../BTSensor"); class UNKNOWN extends BTSensor{ static isSystem = true static identify(device){ return null } async init(){ await super.init() if (!this.currentProperties.Name) this.currentProperties.Name= `Unknown device from ${this.getManufacturer()}` this.addParameter( "sensorClass", { title: "Sensor Class", enum:Array.from(this.constructor.classMap.keys()) } ) this.listen() } } module.exports=UNKNOWN