bt-sensors-plugin-sk
Version:
Bluetooth Sensors for Signalk -- support for Victron devices, RuuviTag, Xiaomi, ATC and Inkbird, Ultrasonic wind meters, Mopeka tank readers, Renogy Battery and Solar Controllers, Aranet4 environment sensors, SwitchBot temp and humidity sensors, Kilovault
21 lines (17 loc) • 567 B
JavaScript
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()}`
var md =this.addMetadatum("sensorClass",'',"Sensor Class")
md.isParam=true
md.enum=Array.from(this.constructor.classMap.keys())
//md.enumNames=this.constructor.classMap
}
}
module.exports=UNKNOWN