hardware-suit
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -84,3 +84,3 @@ import { LampEquip } from './LampEquip'; | ||
*/ | ||
getStatusDescriptor(): string; | ||
getStatusDescriptor(): "" | "关" | "开"; | ||
/** | ||
@@ -87,0 +87,0 @@ * 获取设备字节状态字符串 |
@@ -168,3 +168,4 @@ "use strict"; | ||
const cold = this.getColdColor(); | ||
return bright ? `开 - (亮度:${bright},冷色:${cold})` : '关'; | ||
// return bright ? `开 - (亮度:${bright},冷色:${cold})` : '关' | ||
return bright ? `开` : '关'; | ||
} | ||
@@ -174,3 +175,4 @@ if (this.isTriColor()) { // 三色灯 | ||
const warm = this.getWarmColor(); | ||
return bright ? `开 - (亮度:${bright},冷色:${cold},暖色:${warm})` : '关'; | ||
// return bright ? `开 - (亮度:${bright},冷色:${cold},暖色:${warm})` : '关' | ||
return bright ? `开` : '关'; | ||
} | ||
@@ -190,2 +192,2 @@ return ''; | ||
exports.LedLampEquip = LedLampEquip; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTGVkTGFtcEVxdWlwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL21vZHVsZXMvTGVkTGFtcEVxdWlwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7R0FLRzs7O0FBRUgsMkNBQXdDO0FBQ3hDLHFEQUFrRDtBQUVsRDs7Ozs7Ozs7Ozs7R0FXRztBQUNILE1BQWEsWUFBYSxTQUFRLHFCQUFTO0lBSXpDOzs7OztPQUtHO0lBQ0gsWUFBWSxNQUFjLEVBQUUsVUFBbUIsRUFBRSxlQUF3QjtRQUN2RSxLQUFLLENBQUMsTUFBTSxFQUFFLFVBQVUsRUFBRSxlQUFlLENBQUMsQ0FBQztRQVQ1QixVQUFLLEdBQUcscUJBQXFCLENBQUM7UUFVN0MsSUFBSSxDQUFDLFVBQVUsR0FBRyxJ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8sTUFBTSxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQTtTQUMxQjtRQUNELE9BQU8sRUFBRSxDQUFBO0lBQ1gsQ0FBQztJQUNEOztPQUVHO0lBQ0ksUUFBUTtRQUNiLE1BQU0sTUFBTSxHQUFHLElBQUksQ0FBQyxVQUFVLENBQUMsbUJBQW1CLEVBQUUsQ0FBQztRQUNyRCxNQUFNLFNBQVMsR0FBRyxJQUFJLENBQUMsVUFBVSxDQUFDLGtCQUFrQixFQUFFLENBQUM7UUFDdkQsTUFBTSxTQUFTLEdBQUcsSUFBSSxDQUFDLFVBQVUsQ0FBQyxrQkFBa0IsRUFBRSxDQUFDO1FBQ3ZELE9BQU8sSUFBSSxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUMsTUFBTSxFQUFFLFNBQVMsRUFBRSxTQUFTLENBQUMsQ0FBQztJQUN6RCxDQUFDO0NBQ0Y7QUF2S0Qsb0NBdUtDIn0= |
@@ -7,7 +7,11 @@ "use strict"; | ||
const BaseEquip_1 = require("./BaseEquip"); | ||
const SensorDetectStatusMap = { | ||
const SensorDetectPowerStatusMap = { | ||
[constant_1.SensorDetectStatusEnum.NONE]: '无尿床', | ||
[constant_1.SensorDetectStatusEnum.ON]: '尿床', | ||
[constant_1.SensorDetectStatusEnum.ON]: '尿床' | ||
}; | ||
const SensorDetectAwakeStatusMap = { | ||
[constant_1.SensorDetectStatusEnum.NONE_AWAKE]: '无唤醒', | ||
[constant_1.SensorDetectStatusEnum.AWAKE]: '唤醒', | ||
[constant_1.SensorDetectStatusEnum.AWAKE]: '唤醒' | ||
}; | ||
const SensorDetectKeyStatusMap = { | ||
[constant_1.SensorDetectStatusEnum.NONE_KEY]: '无按键', | ||
@@ -32,5 +36,5 @@ [constant_1.SensorDetectStatusEnum.KEY]: '按键' | ||
const stateBits = this.sensorDetectStatus.__parseBitState(state, 2); | ||
const power = SensorDetectStatusMap[new this.Converter(stateBits[0], 2).toDecimal()]; | ||
const awake = SensorDetectStatusMap[new this.Converter(stateBits[1], 2).toDecimal()]; | ||
const key = SensorDetectStatusMap[new this.Converter(stateBits[2], 2).toDecimal()]; | ||
const power = SensorDetectPowerStatusMap[new this.Converter(stateBits[0], 2).toDecimalNumber()]; | ||
const awake = SensorDetectAwakeStatusMap[new this.Converter(stateBits[1], 2).toDecimalNumber()]; | ||
const key = SensorDetectKeyStatusMap[new this.Converter(stateBits[2], 2).toDecimalNumber()]; | ||
return [power, awake, key]; | ||
@@ -41,3 +45,3 @@ } | ||
const state = this.sensorDetectStatus.getVolStatus(); | ||
const vol = new this.Converter(state, 16).toDecimal(); | ||
const vol = new this.Converter(state, 16).toDecimalNumber(); | ||
return constant_1.SensorDoorVolMap[vol] || ''; | ||
@@ -54,2 +58,2 @@ } | ||
exports.SensorBedWetEquip = SensorBedWetEquip; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2Vuc29yQmVkV2V0RXF1aXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9kdWxlcy9TZW5zb3JCZWRXZXRFcXVpcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxxRUFBa0U7QUFDbEUsaURBQThFO0FBQzlFLDJDQUF3QztBQUV4QyxNQUFNLHFCQUFxQixHQUFRO0lBQ2pDLENBQUMsaUNBQXNCLENBQUMsSUFBSSxDQUFDLEVBQUUsS0FBSztJQUNwQyxDQUFDLGlDQUFzQixDQUFDLEVBQUUsQ0FBQyxFQUFFLElBQUk7SUFDakMsQ0FBQyxpQ0FBc0IsQ0FBQyxVQUFVLENBQUMsRUFBRSxLQUFLO0lBQzFDLENBQUMsaUNBQXNCLENBQUMsS0FBSyxDQUFDLEVBQUUsSUFBSTtJQUNwQyxDQUFDLGlDQUFzQixDQUFDLFFBQVEsQ0FBQyxFQUFFLEtBQUs7SUFDeEMsQ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FDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLGVBQWUsRUFBRSxDQUFDLENBQUE7UUFDL0YsTUFBTSxHQUFHLEdBQUcsd0JBQXdCLENBQUMsSUFBSSxJQUFJLENBQUMsU0FBUyxDQUFDLFNBQVMsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxlQUFlLEVBQUUsQ0FBQyxDQUFBO1FBQzNGLE9BQU8sQ0FBQyxLQUFLLEVBQUUsS0FBSyxFQUFFLEdBQUcsQ0FBQyxDQUFBO0lBQzVCLENBQUM7SUFDRCxPQUFPO0lBQ1Asc0JBQXNCO1FBQ3BCLE1BQU0sS0FBSyxHQUFHLElBQUksQ0FBQyxrQkFBa0IsQ0FBQyxZQUFZLEVBQUUsQ0FBQTtRQUNwRCxNQUFNLEdBQUcsR0FBRyxJQUFJLElBQUksQ0FBQyxTQUFTLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDLGVBQWUsRUFBRSxDQUFBO1FBQzNELE9BQU8sMkJBQWdCLENBQUMsR0FBRyxDQUFDLElBQUksRUFBRSxDQUFBO0lBQ3BDLENBQUM7SUFDRDs7T0FFRztJQUNILG1CQUFtQjtRQUNqQixNQUFNLE1BQU0sR0FBRyxJQUFJLENBQUMsd0JBQXdCLEVBQUUsQ0FBQTtRQUM5QyxPQUFPLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQTtJQUNsQixDQUFDO0NBQ0Y7QUFwQ0QsOENBb0NDIn0= |
@@ -8,5 +8,7 @@ "use strict"; | ||
// 事件 | ||
const SensorDetectStatusMap = { | ||
const SensorDetectPowerStatusMap = { | ||
[constant_1.SensorDetectStatusEnum.NONE]: '无呼叫', | ||
[constant_1.SensorDetectStatusEnum.ON]: '呼叫', | ||
[constant_1.SensorDetectStatusEnum.ON]: '呼叫' | ||
}; | ||
const SensorDetectAwakeStatusMap = { | ||
[constant_1.SensorDetectStatusEnum.NONE_AWAKE]: '无唤醒', | ||
@@ -31,4 +33,4 @@ [constant_1.SensorDetectStatusEnum.AWAKE]: '唤醒' | ||
const stateBits = this.sensorDetectStatus.__parseBitState(state, 2); | ||
const power = SensorDetectStatusMap[new this.Converter(stateBits[0], 2).toDecimal()]; | ||
const awake = SensorDetectStatusMap[new this.Converter(stateBits[1], 2).toDecimal()]; | ||
const power = SensorDetectPowerStatusMap[new this.Converter(stateBits[0], 2).toDecimalNumber()]; | ||
const awake = SensorDetectAwakeStatusMap[new this.Converter(stateBits[1], 2).toDecimalNumber()]; | ||
return [power, awake]; | ||
@@ -39,3 +41,3 @@ } | ||
const state = this.sensorDetectStatus.getVolStatus(); | ||
const vol = new this.Converter(state, 16).toDecimal(); | ||
const vol = new this.Converter(state, 16).toDecimalNumber(); | ||
return constant_1.SensorDoorVolMap[vol] || ''; | ||
@@ -49,2 +51,2 @@ } | ||
exports.SensorCallEquip = SensorCallEquip; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2Vuc29yQ2FsbEVxdWlwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL21vZHVsZXMvU2Vuc29yQ2FsbEVxdWlwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHFFQUFrRTtBQUNsRSxpREFBOEU7QUFDOUUsMkNBQXdDO0FBRXhDLEtBQUs7QUFDTCxNQUFNLHFCQUFxQixHQUFRO0lBQ2pDLENBQUMsaUNBQXNCLENBQUMsSUFBSSxDQUFDLEVBQUUsS0FBSztJQUNwQyxDQUFDLGlDQUFzQixDQUFDLEVBQUUsQ0FBQyxFQUFFLElBQUk7SUFDakMsQ0FBQyxpQ0FBc0IsQ0FBQyxVQUFVLENBQUMsRUFBRSxLQUFLO0lBQzFDLENBQUMsaUNBQXNCLENBQUMsS0FBSyxDQUFDLEVBQUUsSUFBSTtDQUNyQyxDQUFBO0FBRUQsTUFBYS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FBQTtJQUNwQyxDQUFDO0lBQ0QsbUJBQW1CO1FBQ2pCLE1BQU0sTUFBTSxHQUFHLElBQUksQ0FBQyx3QkFBd0IsRUFBRSxDQUFBO1FBQzlDLE9BQU8sTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFBO0lBQ2xCLENBQUM7Q0FDRjtBQWhDRCwwQ0FnQ0MifQ== |
@@ -8,8 +8,12 @@ "use strict"; | ||
// 事件 | ||
const sensorDetectStatusMap = { | ||
const SensorDetectPowerStatusMap = { | ||
[constant_1.SensorDetectStatusEnum.NONE]: '关闭', | ||
[constant_1.SensorDetectStatusEnum.ON]: '打开', | ||
[constant_1.SensorDetectStatusEnum.NONE_AWAKE]: '无', | ||
[constant_1.SensorDetectStatusEnum.AWAKE]: '唤醒', | ||
[constant_1.SensorDetectStatusEnum.NONE_KEY]: '无', | ||
[constant_1.SensorDetectStatusEnum.ON]: '打开' | ||
}; | ||
const SensorDetectAwakeStatusMap = { | ||
[constant_1.SensorDetectStatusEnum.NONE_AWAKE]: '无唤醒', | ||
[constant_1.SensorDetectStatusEnum.AWAKE]: '唤醒' | ||
}; | ||
const SensorDetectKeyStatusMap = { | ||
[constant_1.SensorDetectStatusEnum.NONE_KEY]: '无按键', | ||
[constant_1.SensorDetectStatusEnum.KEY]: '按键' | ||
@@ -33,5 +37,5 @@ }; | ||
const stateBits = this.sensorDetectStatus.__parseBitState(state, 3); | ||
const power = sensorDetectStatusMap[new this.Converter(stateBits[0], 2).toDecimal()]; | ||
const awake = sensorDetectStatusMap[new this.Converter(stateBits[1], 2).toDecimal()]; | ||
const key = sensorDetectStatusMap[new this.Converter(stateBits[2], 2).toDecimal()]; | ||
const power = SensorDetectPowerStatusMap[new this.Converter(stateBits[0], 2).toDecimalNumber()]; | ||
const awake = SensorDetectAwakeStatusMap[new this.Converter(stateBits[1], 2).toDecimalNumber()]; | ||
const key = SensorDetectKeyStatusMap[new this.Converter(stateBits[2], 2).toDecimalNumber()]; | ||
return [power, awake, key]; | ||
@@ -42,3 +46,3 @@ } | ||
const state = this.sensorDetectStatus.getVolStatus(); | ||
const vol = new this.Converter(state, 16).toDecimal(); | ||
const vol = new this.Converter(state, 16).toDecimalNumber(); | ||
return constant_1.SensorDoorVolMap[vol] || ''; | ||
@@ -52,2 +56,2 @@ } | ||
exports.SensorDoorEquip = SensorDoorEquip; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2Vuc29yRG9vckVxdWlwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL21vZHVsZXMvU2Vuc29yRG9vckVxdWlwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHFFQUFrRTtBQUNsRSxpREFBOEU7QUFDOUUsMkNBQXdDO0FBRXhDLEtBQUs7QUFDTCxNQUFNLHFCQUFxQixHQUFRO0lBQ2pDLENBQUMsaUNBQXNCLENBQUMsSUFBSSxDQUFDLEVBQUUsSUFBSTtJQUNuQyxDQUFDLGlDQUFzQixDQUFDLEVBQUUsQ0FBQyxFQUFFLElBQUk7SUFDakMsQ0FBQyxpQ0FBc0IsQ0FBQyxVQUFVLENBQUMsRUFBRSxHQUFHO0lBQ3hDLENBQUMsaUNBQXNCLENBQUMsS0FBSyxDQUFDLEVBQUUsSUFBSTtJQUNwQyxDQUFDLGlDQUFzQixDQUFDLFFBQVEsQ0FBQyxFQUFFLEdBQUc7SUFDdEMsQ0FBQyxpQ0FBc0IsQ0FBQyxHQUFHLENBQUMsRUFBRSxJQUFJO0NBQ25DLENBQUE7QUFFRCxNQUFhLGVBQWdCLFNBQVEscUJBQVM7SUFHNUM7Ozs7O09BS0c7SUFDSCxZQUFZLE1BQWMsRUFBRSxVQUFtQixFQUFFLGVBQXdCO1FBQ3ZFLEtBQUssQ0FBQyxNQUFNLEVBQUUsVUFBVSxFQUFFLGVBQWUsQ0FBQyxDQUFDO1FBVDVCLFVBQUssR0FBRy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LLEVBQUUsR0FBRyxDQUFDLENBQUE7SUFDNUIsQ0FBQztJQUNELE9BQU87SUFDUCxzQkFBc0I7UUFDcEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxDQUFDLGtCQUFrQixDQUFDLFlBQVksRUFBRSxDQUFBO1FBQ3BELE1BQU0sR0FBRyxHQUFHLElBQUksSUFBSSxDQUFDLFNBQVMsQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUMsZUFBZSxFQUFFLENBQUE7UUFDM0QsT0FBTywyQkFBZ0IsQ0FBQyxHQUFHLENBQUMsSUFBSSxFQUFFLENBQUE7SUFDcEMsQ0FBQztJQUNELG1CQUFtQjtRQUNqQixNQUFNLE1BQU0sR0FBRyxJQUFJLENBQUMsd0JBQXdCLEVBQUUsQ0FBQTtRQUM5QyxPQUFPLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQTtJQUNsQixDQUFDO0NBQ0Y7QUFqQ0QsMENBaUNDIn0= |
@@ -29,18 +29,18 @@ "use strict"; | ||
let equip = {}; | ||
if (this.TypeHints.isBedwetSensors(this.deviceType, this.deviceChildType)) { | ||
if (this.TypeHints.isBedwetSensors(this.deviceChildType, this.deviceType)) { | ||
equip = new SensorBedWetEquip_1.SensorBedWetEquip(this.status, this.deviceType, this.deviceChildType); | ||
} | ||
else if (this.TypeHints.isCallSensors(this.deviceType, this.deviceChildType)) { | ||
else if (this.TypeHints.isCallSensors(this.deviceChildType, this.deviceType)) { | ||
equip = new SensorCallEquip_1.SensorCallEquip(this.status, this.deviceType, this.deviceChildType); | ||
} | ||
else if (this.TypeHints.isDoorSensors(this.deviceType, this.deviceChildType)) { | ||
else if (this.TypeHints.isDoorSensors(this.deviceChildType, this.deviceType)) { | ||
equip = new SensorDoorEquip_1.SensorDoorEquip(this.status, this.deviceType, this.deviceChildType); | ||
} | ||
else if (this.TypeHints.isGasSensors(this.deviceType, this.deviceChildType)) { | ||
else if (this.TypeHints.isGasSensors(this.deviceChildType, this.deviceType)) { | ||
equip = new SensorGasEquip_1.SensorGasEquip(this.status, this.deviceType, this.deviceChildType); | ||
} | ||
else if (this.TypeHints.isSmogSensors(this.deviceType, this.deviceChildType)) { | ||
else if (this.TypeHints.isSmogSensors(this.deviceChildType, this.deviceType)) { | ||
equip = new SensorSmogEquip_1.SensorSmogEquip(this.status, this.deviceType, this.deviceChildType); | ||
} | ||
else if (this.TypeHints.isWaterSensors(this.deviceType, this.deviceChildType)) { | ||
else if (this.TypeHints.isWaterSensors(this.deviceChildType, this.deviceType)) { | ||
equip = new SensorWaterEquip_1.SensorWaterEquip(this.status, this.deviceType, this.deviceChildType); | ||
@@ -52,2 +52,2 @@ } | ||
exports.SensorEquip = SensorEquip; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2Vuc29yRXF1aXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9kdWxlcy9TZW5zb3JFcXVpcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwyQ0FBd0M7QUFDeEMsMkRBQXdEO0FBQ3hELHVEQUFvRDtBQUNwRCx1REFBb0Q7QUFDcEQscURBQWtEO0FBQ2xELHVEQUFvRDtBQUNwRCx5REFBc0Q7QUFFdEQsTUFBYSxXQUFZLFNBQVEscUJBQVM7SUFHeEM7Ozs7Ozs7Ozs7T0FVRztJQUNILFlBQVksTUFBYyxFQUFFLFVBQW1CLEVBQUUsZUFBd0I7UUFDdkUsS0FBSyxDQUFDLE1BQU0sRUFBRSxVQUFVLEVBQUUsZUFBZSxDQUFDLENBQUE7UUFiNUMsVUFBSyxHQUFRLEVBQUUsQ0FBQztJQWNoQixDQUFDO0lBQ0QsTUFBTTtRQUNKLElBQUksS0FBSyxHQUFRLEVBQUUsQ0FBQTtRQUNuQixJQUFJLElBQUksQ0FBQyxTQUFTLENBQUMsZUFBZSxDQUFDLElBQUksQ0FBQyxVQUF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BQUksQ0FBQyxTQUFTLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxlQUFlLEVBQUUsSUFBSSxDQUFDLFVBQVUsQ0FBQyxFQUFFO1lBQzlFLEtBQUssR0FBRyxJQUFJLGlDQUFlLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxJQUFJLENBQUMsVUFBVSxFQUFFLElBQUksQ0FBQyxlQUFlLENBQUMsQ0FBQTtTQUNoRjthQUFNLElBQUksSUFBSSxDQUFDLFNBQVMsQ0FBQyxjQUFjLENBQUMsSUFBSSxDQUFDLGVBQWUsRUFBRSxJQUFJLENBQUMsVUFBVSxDQUFDLEVBQUU7WUFDL0UsS0FBSyxHQUFHLElBQUksbUNBQWdCLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxJQUFJLENBQUMsVUFBVSxFQUFFLElBQUksQ0FBQyxlQUFlLENBQUMsQ0FBQTtTQUNqRjtRQUNELE9BQU8sSUFBSSxDQUFDLEtBQUssR0FBRyxLQUFLLENBQUE7SUFDM0IsQ0FBQztDQUNGO0FBbENELGtDQWtDQyJ9 |
@@ -8,6 +8,8 @@ "use strict"; | ||
// 事件 | ||
const sensorDetectStatusMap = { | ||
const SensorDetectPowerStatusMap = { | ||
[constant_1.SensorDetectStatusEnum.NONE]: '无燃气', | ||
[constant_1.SensorDetectStatusEnum.ON]: '燃气报警', | ||
[constant_1.SensorDetectStatusEnum.NONE_AWAKE]: '无', | ||
[constant_1.SensorDetectStatusEnum.ON]: '燃气报警' | ||
}; | ||
const SensorDetectAwakeStatusMap = { | ||
[constant_1.SensorDetectStatusEnum.NONE_AWAKE]: '无唤醒', | ||
[constant_1.SensorDetectStatusEnum.AWAKE]: '唤醒' | ||
@@ -31,4 +33,4 @@ }; | ||
const stateBits = this.sensorDetectStatus.__parseBitState(state, 3); | ||
const power = sensorDetectStatusMap[new this.Converter(stateBits[0], 2).toDecimal()]; | ||
const awake = sensorDetectStatusMap[new this.Converter(stateBits[1], 2).toDecimal()]; | ||
const power = SensorDetectPowerStatusMap[new this.Converter(stateBits[0], 2).toDecimalNumber()]; | ||
const awake = SensorDetectAwakeStatusMap[new this.Converter(stateBits[1], 2).toDecimalNumber()]; | ||
return [power, awake]; | ||
@@ -39,3 +41,3 @@ } | ||
const state = this.sensorDetectStatus.getVolStatus(); | ||
const vol = new this.Converter(state, 16).toDecimal(); | ||
const vol = new this.Converter(state, 16).toDecimalNumber(); | ||
return constant_1.SensorDoorVolMap[vol] || ''; | ||
@@ -49,2 +51,2 @@ } | ||
exports.SensorGasEquip = SensorGasEquip; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2Vuc29yR2FzRXF1aXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9kdWxlcy9TZW5zb3JHYXNFcXVpcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxxRUFBa0U7QUFDbEUsaURBQThFO0FBQzlFLDJDQUF3QztBQUV4QyxLQUFLO0FBQ0wsTUFBTSxxQkFBcUIsR0FBUTtJQUNqQyxDQUFDLGlDQUFzQixDQUFDLElBQUksQ0FBQyxFQUFFLEtBQUs7SUFDcEMsQ0FBQyxpQ0FBc0IsQ0FBQyxFQUFFLENBQUMsRUFBRSxNQUFNO0lBQ25DLENBQUMsaUNBQXNCLENBQUMsVUFBVSxDQUFDLEVBQUUsR0FBRztJQUN4QyxDQUFDLGlDQUFzQixDQUFDLEtBQUssQ0FBQyxFQUFFLElBQUk7Q0FDckMsQ0FBQTtBQUVELE1BQWEsY0FBZSxTQUFRLHFCQUFTO0lBRzNDOzs7OztPQUtHO0lBQ0gsWUFBWSxNQUFjLEVBQUUsVUFBbUIsRUFBRSxlQUF3QjtRQUN2RSxLQUFLLENBQUMsTUFBTSxFQUFFLFVBQVUsRUFBRSxlQUFlLENBQUMsQ0FBQztRQVQ1QixVQUFLLEdBQUcsa0JBQWtCLEN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8,6 +8,8 @@ "use strict"; | ||
// 事件 | ||
const sensorDetectStatusMap = { | ||
const SensorDetectPowerStatusMap = { | ||
[constant_1.SensorDetectStatusEnum.NONE]: '无烟雾', | ||
[constant_1.SensorDetectStatusEnum.ON]: '烟雾报警', | ||
[constant_1.SensorDetectStatusEnum.NONE_AWAKE]: '无', | ||
[constant_1.SensorDetectStatusEnum.ON]: '烟雾报警' | ||
}; | ||
const SensorDetectAwakeStatusMap = { | ||
[constant_1.SensorDetectStatusEnum.NONE_AWAKE]: '无唤醒', | ||
[constant_1.SensorDetectStatusEnum.AWAKE]: '唤醒' | ||
@@ -31,4 +33,4 @@ }; | ||
const stateBits = this.sensorDetectStatus.__parseBitState(state, 3); | ||
const power = sensorDetectStatusMap[new this.Converter(stateBits[0], 2).toDecimal()]; | ||
const awake = sensorDetectStatusMap[new this.Converter(stateBits[1], 2).toDecimal()]; | ||
const power = SensorDetectPowerStatusMap[new this.Converter(stateBits[0], 2).toDecimalNumber()]; | ||
const awake = SensorDetectAwakeStatusMap[new this.Converter(stateBits[1], 2).toDecimalNumber()]; | ||
return [power, awake]; | ||
@@ -39,3 +41,3 @@ } | ||
const state = this.sensorDetectStatus.getVolStatus(); | ||
const vol = new this.Converter(state, 16).toDecimal(); | ||
const vol = new this.Converter(state, 16).toDecimalNumber(); | ||
return constant_1.SensorDoorVolMap[vol] || ''; | ||
@@ -49,2 +51,2 @@ } | ||
exports.SensorSmogEquip = SensorSmogEquip; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2Vuc29yU21vZ0VxdWlwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL21vZHVsZXMvU2Vuc29yU21vZ0VxdWlwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHFFQUFrRTtBQUNsRSxpREFBOEU7QUFDOUUsMkNBQXdDO0FBRXhDLEtBQUs7QUFDTC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lBQ0QsT0FBTztJQUNQLHNCQUFzQjtRQUNwQixNQUFNLEtBQUssR0FBRyxJQUFJLENBQUMsa0JBQWtCLENBQUMsWUFBWSxFQUFFLENBQUE7UUFDcEQsTUFBTSxHQUFHLEdBQUcsSUFBSSxJQUFJLENBQUMsU0FBUyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQyxlQUFlLEVBQUUsQ0FBQTtRQUMzRCxPQUFPLDJCQUFnQixDQUFDLEdBQUcsQ0FBQyxJQUFJLEVBQUUsQ0FBQTtJQUNwQyxDQUFDO0lBQ0QsbUJBQW1CO1FBQ2pCLE1BQU0sTUFBTSxHQUFHLElBQUksQ0FBQyx3QkFBd0IsRUFBRSxDQUFBO1FBQzlDLE9BQU8sTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFBO0lBQ2xCLENBQUM7Q0FDRjtBQWhDRCwwQ0FnQ0MifQ== |
@@ -8,8 +8,12 @@ "use strict"; | ||
// 事件 | ||
const sensorDetectStatusMap = { | ||
const SensorDetectPowerStatusMap = { | ||
[constant_1.SensorDetectStatusEnum.NONE]: '解除水浸', | ||
[constant_1.SensorDetectStatusEnum.ON]: '水浸', | ||
[constant_1.SensorDetectStatusEnum.NONE_AWAKE]: '无', | ||
[constant_1.SensorDetectStatusEnum.AWAKE]: '唤醒', | ||
[constant_1.SensorDetectStatusEnum.NONE_KEY]: '无', | ||
[constant_1.SensorDetectStatusEnum.ON]: '水浸' | ||
}; | ||
const SensorDetectAwakeStatusMap = { | ||
[constant_1.SensorDetectStatusEnum.NONE_AWAKE]: '无唤醒', | ||
[constant_1.SensorDetectStatusEnum.AWAKE]: '唤醒' | ||
}; | ||
const SensorDetectKeyStatusMap = { | ||
[constant_1.SensorDetectStatusEnum.NONE_KEY]: '无按键', | ||
[constant_1.SensorDetectStatusEnum.KEY]: '按键' | ||
@@ -33,5 +37,5 @@ }; | ||
const stateBits = this.sensorDetectStatus.__parseBitState(state, 3); | ||
const power = sensorDetectStatusMap[new this.Converter(stateBits[0], 2).toDecimal()]; | ||
const awake = sensorDetectStatusMap[new this.Converter(stateBits[1], 2).toDecimal()]; | ||
const key = sensorDetectStatusMap[new this.Converter(stateBits[2], 2).toDecimal()]; | ||
const power = SensorDetectPowerStatusMap[new this.Converter(stateBits[0], 2).toDecimalNumber()]; | ||
const awake = SensorDetectAwakeStatusMap[new this.Converter(stateBits[1], 2).toDecimalNumber()]; | ||
const key = SensorDetectKeyStatusMap[new this.Converter(stateBits[2], 2).toDecimalNumber()]; | ||
return [power, awake, key]; | ||
@@ -42,3 +46,3 @@ } | ||
const state = this.sensorDetectStatus.getVolStatus(); | ||
const vol = new this.Converter(state, 16).toDecimal(); | ||
const vol = new this.Converter(state, 16).toDecimalNumber(); | ||
return constant_1.SensorDoorVolMap[vol] || ''; | ||
@@ -52,2 +56,2 @@ } | ||
exports.SensorWaterEquip = SensorWaterEquip; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2Vuc29yV2F0ZXJFcXVpcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9tb2R1bGVzL1NlbnNvcldhdGVyRXF1aXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEscUVBQWtFO0FBQ2xFLGlEQUE4RTtBQUM5RSwyQ0FBd0M7QUFFeEMsS0FBSztBQUNMLE1BQU0scUJBQXFCLEdBQVE7SUFDakMsQ0FBQyxpQ0FBc0IsQ0FBQyxJQUFJLENBQUMsRUFBRSxNQUFNO0lBQ3JDLENBQUMsaUNBQXNCLENBQUMsRUFBRSxDQUFDLEVBQUUsSUFBSTtJQUNqQyxDQUFDLGlDQUFzQixDQUFDLFVBQVUsQ0FBQyxFQUFFLEdBQUc7SUFDeEMsQ0FBQyxpQ0FBc0IsQ0FBQyxLQUFLLENBQUMsRUFBRSxJQUFJO0lBQ3BDLENBQUMsaUNBQXNCLENBQUMsUU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QUksSUFBSSxDQUFDLFNBQVMsQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsZUFBZSxFQUFFLENBQUMsQ0FBQTtRQUMvRixNQUFNLEdBQUcsR0FBRyx3QkFBd0IsQ0FBQyxJQUFJLElBQUksQ0FBQyxTQUFTLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLGVBQWUsRUFBRSxDQUFDLENBQUE7UUFDM0YsT0FBTyxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsR0FBRyxDQUFDLENBQUE7SUFDNUIsQ0FBQztJQUNELE9BQU87SUFDUCxzQkFBc0I7UUFDcEIsTUFBTSxLQUFLLEdBQUcsSUFBSSxDQUFDLGtCQUFrQixDQUFDLFlBQVksRUFBRSxDQUFBO1FBQ3BELE1BQU0sR0FBRyxHQUFHLElBQUksSUFBSSxDQUFDLFNBQVMsQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLENBQUMsZUFBZSxFQUFFLENBQUE7UUFDM0QsT0FBTywyQkFBZ0IsQ0FBQyxHQUFHLENBQUMsSUFBSSxFQUFFLENBQUE7SUFDcEMsQ0FBQztJQUNELG1CQUFtQjtRQUNqQixNQUFNLE1BQU0sR0FBRyxJQUFJLENBQUMsd0JBQXdCLEVBQUUsQ0FBQTtRQUM5QyxPQUFPLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQTtJQUNsQixDQUFDO0NBQ0Y7QUFqQ0QsNENBaUNDIn0= |
@@ -217,3 +217,4 @@ "use strict"; | ||
if (TypeHints.isDetectSensors(deviceChildType, deviceType)) { | ||
const detectEquip = new SensorEquip_1.SensorEquip(status, deviceType, deviceChildType); | ||
const factory = new SensorEquip_1.SensorEquip(status, deviceType, deviceChildType); | ||
const detectEquip = factory.create(); | ||
return detectEquip.getStatusDescriptor(); | ||
@@ -261,2 +262,2 @@ } | ||
exports.Descriptor = new _Descri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sT0FBTyxDQUFDLEVBQUU7WUFDeEUsTUFBTSxjQUFjLEdBQUcsT0FBTyxDQUFDLFNBQVMsRUFBRSxDQUFBO1lBQzFDLE9BQU8sSUFBSSxDQUFDLFNBQVMsQ0FBQyxLQUFLLGNBQWMsRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsVUFBVSxFQUFFLGVBQWUsQ0FBQyxJQUFJLEVBQUUsQ0FBQztRQUN2RyxDQUFDLENBQUMsSUFBSSxFQUFFLENBQUE7UUFDUixNQUFNLGdCQUFnQixHQUFHLE1BQU0sYUFBYSxDQUFDLFNBQVMsRUFBRSxZQUFZLENBQUE7UUFDcEUsSUFBSSxJQUFJLENBQUMsZ0JBQWdCLENBQUMsRUFBRTtZQUMxQixPQUFPLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsTUFBTSxFQUFFLFVBQVUsRUFBRSxlQUFlLENBQUMsQ0FBQTtTQUM5RTtRQUNELE9BQU8sRUFBRSxDQUFBO0lBQ1gsQ0FBQztDQUNGO0FBdk9ELGtDQXVPQztBQUVEOzs7R0FHRztBQUNVLFFBQUEsVUFBVSxHQUFHLElBQUksV0FBVyxFQUFFLENBQUMifQ== |
@@ -8,2 +8,3 @@ "use strict"; | ||
const converter_1 = require("./converter"); | ||
const log_1 = require("./log"); | ||
require("./string"); | ||
@@ -31,2 +32,6 @@ const suiter_1 = __importDefault(require("./suiter")); | ||
} | ||
if (!deviceType) { | ||
log_1.warn('deviceType 不能为空!'); | ||
return false; | ||
} | ||
if (!deviceChildType) { | ||
@@ -43,5 +48,9 @@ return !!suitTypes[deviceType.toHexNumber().toEvenHex()]; | ||
__hasGroupType(group, deviceChildType) { | ||
if (!group || !group.length || !deviceChildType) { | ||
if (!group || !group.length) { | ||
return false; | ||
} | ||
if (!deviceChildType) { | ||
log_1.warn('deviceChildType 不能为空!'); | ||
return false; | ||
} | ||
return group.includes(deviceChildType.toHexNumber().toEvenHex()); | ||
@@ -115,2 +124,2 @@ } | ||
exports.TypeHints = new _TypeHints(); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZUhpbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3V0aWxzL3R5cGVIaW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSwyQ0FBd0M7QUFDeEMsb0JBQWtCO0FBQ2xCLHNEQUE0QjtBQUM1QixNQUFNLE1BQU0sR0FBUSxnQkFBSSxDQUFDO0FBRXpCOztHQUVHO0FBQ0gsTUFBYSxVQUFVO0lBRXJCO1FBQ0UsSUFBSSxDQUFDLHFCQUFxQixFQUFFLENBQUM7UUFDN0IsSUFBSSxDQUFDLG9CQUFvQixFQUFFLENBQUM7UUFDNUIsSUFBSSxDQUFDLG1CQUFtQixFQUFFLENBQUE7SUFDNUIsQ0FBQztJQUVEOzs7OztPQUtHO0lBQ0ssZUFBZSxDQUFDLFNBQWlCLEVBQUUsVUFBa0IsRUFBRSxlQUF1QjtRQUNwRixJQUFJLENBQUMsU0FBUyxFQUFFO1lBQ2QsT0FBTyxLQUFLLENBQUM7U0FDZDtRQUNELElBQUksQ0FBQyxlQUFlLEVBQUU7WUFDcEIsT0FBTyxDQUFDLENBQUUsU0FBaUIsQ0FBQyxVQUFVLENBQUMsV0FBVyxFQUFFLENBQUMsU0FBUyxFQUFFLENBQUMsQ0FBQztTQUNuRTtRQUNELE9BQU8sQ0FBQyxDQUFFLFNBQWlCLENBQUMsR0FBRyxVQUFVLENBQUMsV0FBVyxFQUFFLENBQUMsU0FBUyxFQUFFLEdBQUcsZUFBZSxDQUFDLFdBQVcsRUFBRSxDQUFDLFNBQVMsRUFBRSxFQUFFLENBQUMsQ0FBQztJQUNySCxDQUFDO0lBRUQ7Ozs7T0FJRztJQUNLLGNBQW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ENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxHQUFHLENBQUMsSUFBSSxDQUFDLEVBQUU7WUFDekMsTUFBTSxTQUFTLEdBQUcsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLFNBQVMsQ0FBQyxDQUFDLGdCQUFnQjtZQUMxRCxNQUFNLFFBQVEsR0FBRyxJQUFJLENBQUMsU0FBUyxFQUFFLENBQUM7WUFDbEMsSUFBSSxTQUFTLEVBQUU7Z0JBQ1osSUFBWSxDQUFDLE1BQU0sUUFBUSxXQUFXLENBQUMsR0FBRyxDQUFDLFVBQWtCLEVBQUUsZUFBdUIsRUFBVSxFQUFFO29CQUNqRyxPQUFPLElBQUksQ0FBQyxjQUFjLENBQUMsU0FBUyxFQUFFLFVBQVUsRUFBRSxlQUFlLENBQUMsQ0FBQztnQkFDckUsQ0FBQyxDQUFDO2FBQ0g7UUFDSCxDQUFDLENBQUMsQ0FBQztJQUNMLENBQUM7Q0FDRjtBQXhHRCxnQ0F3R0M7QUFFRDs7R0FFRztBQUNVLFFBQUEsU0FBUyxHQUFHLElBQUksVUFBVSxFQUFFLENBQUMifQ== |
119
CHANGELOG.md
@@ -5,103 +5,104 @@ # Changelog | ||
## [1.2.0](https://github.com/ob-cloud/hardware-suit/compare/v1.1.28...v1.2.0) (2021-01-27) | ||
## [1.3.0](https://github.com/ob-cloud/hardware-suit/compare/v1.1.44...v1.3.0) (2021-01-28) | ||
### Features | ||
### Bug Fixes | ||
* 修改插座开关类型状态取值 ([277740c](https://github.com/ob-cloud/hardware-suit/commit/277740c)) | ||
* 修改检测类传感器 ([2885ccd](https://github.com/ob-cloud/hardware-suit/commit/2885ccd)) | ||
* 修改版本 ([83189a8](https://github.com/ob-cloud/hardware-suit/commit/83189a8)) | ||
* 修改配置 ([8224e1f](https://github.com/ob-cloud/hardware-suit/commit/8224e1f)) | ||
* 发布移除node_modules,修改版本号 ([79e4038](https://github.com/ob-cloud/hardware-suit/commit/79e4038)) | ||
* 添加Ac光感传感套件 ([8156dc2](https://github.com/ob-cloud/hardware-suit/commit/8156dc2)) | ||
* 添加CI ([e416ee5](https://github.com/ob-cloud/hardware-suit/commit/e416ee5)) | ||
* 添加传感器套件 ([4c58995](https://github.com/ob-cloud/hardware-suit/commit/4c58995)) | ||
* remove .npmrc ([0d6914d](https://github.com/ob-cloud/hardware-suit/commit/0d6914d)) | ||
* 修改version ([15ea0d3](https://github.com/ob-cloud/hardware-suit/commit/15ea0d3)) | ||
* 修改版本号 ([31f021b](https://github.com/ob-cloud/hardware-suit/commit/31f021b)) | ||
### Features | ||
### [1.1.39](https://github.com/ob-cloud/hardware-suit/compare/v1.1.36...v1.1.39) (2020-12-23) | ||
* build ([358b178](https://github.com/ob-cloud/hardware-suit/commit/358b178)) | ||
* 修改双色灯状态描述值 ([d0baf35](https://github.com/ob-cloud/hardware-suit/commit/d0baf35)) | ||
* 修改版本 ([4cd1a94](https://github.com/ob-cloud/hardware-suit/commit/4cd1a94)) | ||
* 修改版本号 ([e5efebd](https://github.com/ob-cloud/hardware-suit/commit/e5efebd)) | ||
* 修改版本号 ([2b33be4](https://github.com/ob-cloud/hardware-suit/commit/2b33be4)) | ||
* 检测类传感器状态修改 ([f95c028](https://github.com/ob-cloud/hardware-suit/commit/f95c028)) | ||
* 类型检测添加警告提示 ([cb0badf](https://github.com/ob-cloud/hardware-suit/commit/cb0badf)) | ||
### [1.1.37](https://github.com/ob-cloud/hardware-suit/compare/v1.1.34...v1.1.37) (2020-12-23) | ||
## [1.2.0](https://github.com/ob-cloud/hardware-suit/compare/v1.1.44...v1.2.0) (2021-01-28) | ||
### Bug Fixes | ||
### [1.1.35](https://github.com/ob-cloud/hardware-suit/compare/v1.1.32...v1.1.35) (2020-12-22) | ||
* remove .npmrc ([0d6914d](https://github.com/ob-cloud/hardware-suit/commit/0d6914d)) | ||
* 修改version ([15ea0d3](https://github.com/ob-cloud/hardware-suit/commit/15ea0d3)) | ||
* 修改版本号 ([31f021b](https://github.com/ob-cloud/hardware-suit/commit/31f021b)) | ||
### Features | ||
### [1.1.33](https://github.com/ob-cloud/hardware-suit/compare/v1.1.30...v1.1.33) (2020-12-21) | ||
* build ([358b178](https://github.com/ob-cloud/hardware-suit/commit/358b178)) | ||
* 修改双色灯状态描述值 ([d0baf35](https://github.com/ob-cloud/hardware-suit/commit/d0baf35)) | ||
* 修改版本 ([4cd1a94](https://github.com/ob-cloud/hardware-suit/commit/4cd1a94)) | ||
* 修改版本号 ([e5efebd](https://github.com/ob-cloud/hardware-suit/commit/e5efebd)) | ||
* 修改版本号 ([2b33be4](https://github.com/ob-cloud/hardware-suit/commit/2b33be4)) | ||
* 检测类传感器状态修改 ([f95c028](https://github.com/ob-cloud/hardware-suit/commit/f95c028)) | ||
* 类型检测添加警告提示 ([cb0badf](https://github.com/ob-cloud/hardware-suit/commit/cb0badf)) | ||
### [1.1.31](https://github.com/ob-cloud/hardware-suit/compare/v1.1.28...v1.1.31) (2020-12-18) | ||
## [1.3.0](https://github.com/ob-cloud/hardware-suit/compare/v1.1.44...v1.3.0) (2021-01-28) | ||
### [1.1.29](https://github.com/ob-cloud/hardware-suit/compare/v1.1.26...v1.1.29) (2020-12-17) | ||
### [1.1.27](https://github.com/ob-cloud/hardware-suit/compare/v1.1.24...v1.1.27) (2020-12-17) | ||
### Bug Fixes | ||
* 温度模式 ([d7c00b5](https://github.com/ob-cloud/hardware-suit/commit/d7c00b5)) | ||
* remove .npmrc ([0d6914d](https://github.com/ob-cloud/hardware-suit/commit/0d6914d)) | ||
* 修改version ([15ea0d3](https://github.com/ob-cloud/hardware-suit/commit/15ea0d3)) | ||
* 修改版本号 ([31f021b](https://github.com/ob-cloud/hardware-suit/commit/31f021b)) | ||
### Features | ||
### [1.1.25](https://github.com/ob-cloud/hardware-suit/compare/v1.1.22...v1.1.25) (2020-12-16) | ||
* build ([358b178](https://github.com/ob-cloud/hardware-suit/commit/358b178)) | ||
* 修改双色灯状态描述值 ([d0baf35](https://github.com/ob-cloud/hardware-suit/commit/d0baf35)) | ||
* 修改版本 ([4cd1a94](https://github.com/ob-cloud/hardware-suit/commit/4cd1a94)) | ||
* 修改版本号 ([2b33be4](https://github.com/ob-cloud/hardware-suit/commit/2b33be4)) | ||
* 检测类传感器状态修改 ([f95c028](https://github.com/ob-cloud/hardware-suit/commit/f95c028)) | ||
* 类型检测添加警告提示 ([cb0badf](https://github.com/ob-cloud/hardware-suit/commit/cb0badf)) | ||
### [1.1.23](https://github.com/ob-cloud/hardware-suit/compare/v1.1.20...v1.1.23) (2020-12-15) | ||
## [1.4.0](https://github.com/ob-cloud/hardware-suit/compare/v1.1.44...v1.4.0) (2021-01-28) | ||
### Bug Fixes | ||
### [1.1.21](https://github.com/ob-cloud/hardware-suit/compare/v1.1.18...v1.1.21) (2020-12-15) | ||
* remove .npmrc ([0d6914d](https://github.com/ob-cloud/hardware-suit/commit/0d6914d)) | ||
* 修改version ([15ea0d3](https://github.com/ob-cloud/hardware-suit/commit/15ea0d3)) | ||
* 修改版本号 ([31f021b](https://github.com/ob-cloud/hardware-suit/commit/31f021b)) | ||
### Features | ||
### [1.1.19](https://github.com/ob-cloud/hardware-suit/compare/v1.1.16...v1.1.19) (2020-12-03) | ||
* build ([358b178](https://github.com/ob-cloud/hardware-suit/commit/358b178)) | ||
* 修改双色灯状态描述值 ([d0baf35](https://github.com/ob-cloud/hardware-suit/commit/d0baf35)) | ||
* 修改版本 ([4cd1a94](https://github.com/ob-cloud/hardware-suit/commit/4cd1a94)) | ||
* 修改版本号 ([2b33be4](https://github.com/ob-cloud/hardware-suit/commit/2b33be4)) | ||
* 检测类传感器状态修改 ([f95c028](https://github.com/ob-cloud/hardware-suit/commit/f95c028)) | ||
* 类型检测添加警告提示 ([cb0badf](https://github.com/ob-cloud/hardware-suit/commit/cb0badf)) | ||
### [1.1.17](https://github.com/ob-cloud/hardware-suit/compare/v1.1.14...v1.1.17) (2020-12-01) | ||
## [1.3.0](https://github.com/ob-cloud/hardware-suit/compare/v1.1.44...v1.3.0) (2021-01-28) | ||
### Bug Fixes | ||
### [1.1.15](https://github.com/ob-cloud/hardware-suit/compare/v1.1.12...v1.1.15) (2020-12-01) | ||
* remove .npmrc ([0d6914d](https://github.com/ob-cloud/hardware-suit/commit/0d6914d)) | ||
* 修改version ([15ea0d3](https://github.com/ob-cloud/hardware-suit/commit/15ea0d3)) | ||
* 修改版本号 ([31f021b](https://github.com/ob-cloud/hardware-suit/commit/31f021b)) | ||
### Features | ||
### [1.1.13](https://github.com/ob-cloud/hardware-suit/compare/v1.1.10...v1.1.13) (2020-11-30) | ||
### [1.1.11](https://github.com/ob-cloud/hardware-suit/compare/v1.1.8...v1.1.11) (2020-11-19) | ||
### [1.1.9](https://github.com/ob-cloud/hardware-suit/compare/v1.1.6...v1.1.9) (2020-10-19) | ||
### [1.1.7](https://github.com/ob-cloud/hardware-suit/compare/v1.1.4...v1.1.7) (2020-10-19) | ||
### [1.1.5](https://github.com/ob-cloud/hardware-suit/compare/v1.1.2...v1.1.5) (2020-09-27) | ||
### [1.1.3](https://github.com/ob-cloud/hardware-suit/compare/v1.1.0...v1.1.3) (2020-09-07) | ||
### [1.1.1](https://github.com/ob-cloud/hardware-suit/compare/v1.0.1...v1.1.1) (2020-08-19) | ||
### 1.0.1 (2020-08-18) | ||
* build ([358b178](https://github.com/ob-cloud/hardware-suit/commit/358b178)) | ||
* 修改双色灯状态描述值 ([d0baf35](https://github.com/ob-cloud/hardware-suit/commit/d0baf35)) | ||
* 修改版本号 ([2b33be4](https://github.com/ob-cloud/hardware-suit/commit/2b33be4)) | ||
* 检测类传感器状态修改 ([f95c028](https://github.com/ob-cloud/hardware-suit/commit/f95c028)) | ||
* 类型检测添加警告提示 ([cb0badf](https://github.com/ob-cloud/hardware-suit/commit/cb0badf)) |
{ | ||
"name": "hardware-suit", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "hardware-suit javascript library", | ||
@@ -5,0 +5,0 @@ "main": "dist/hardware-suit.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
984992
107
9393