hardware-suit
Advanced tools
Comparing version 1.1.1 to 1.1.3
@@ -5,5 +5,19 @@ import { Status } from './Status'; | ||
readonly colorLampStatus: string; | ||
brightnessStatus: string; | ||
coldColorStatus: string; | ||
warmColorStatus: string; | ||
timeDelayStatus: string; | ||
exceptionStatus: string; | ||
constructor(status: string); | ||
getNormalLampStatus(): string; | ||
getColorLampStatus(): string; | ||
setBrightnessStatus(bright: string): LampStatus; | ||
getBrightnessStatus(): string; | ||
setColdColorStatus(color: string): LampStatus; | ||
getColdColorStatus(): string; | ||
setWarmColorStatus(warm: string): LampStatus; | ||
getWarmColorStatus(): string; | ||
setTimeDelayStatus(timeDelay: string): LampStatus; | ||
getTimeDelayStatus(): string; | ||
getExceptionStatus(): string; | ||
} |
@@ -8,6 +8,22 @@ "use strict"; | ||
super(status); | ||
// 普通灯状态 | ||
this.normalLampStatus = ''; | ||
// 色灯状态 | ||
this.colorLampStatus = ''; | ||
// 亮度状态 | ||
this.brightnessStatus = ''; | ||
// 冷光 | ||
this.coldColorStatus = ''; | ||
// 暖光 | ||
this.warmColorStatus = ''; | ||
// 时延 | ||
this.timeDelayStatus = ''; | ||
this.exceptionStatus = ''; | ||
this.normalLampStatus = status.slice(0, 2); | ||
this.colorLampStatus = status.slice(2, 4); | ||
this.brightnessStatus = status.slice(0, 2); | ||
this.coldColorStatus = status.slice(2, 4); | ||
this.warmColorStatus = status.slice(4, 6); | ||
this.timeDelayStatus = status.slice(12, 14); | ||
this.exceptionStatus = status.slice(14); | ||
} | ||
@@ -20,4 +36,35 @@ getNormalLampStatus() { | ||
} | ||
setBrightnessStatus(bright) { | ||
this.brightnessStatus = bright.toEvenHex(); | ||
return this; | ||
} | ||
getBrightnessStatus() { | ||
return this.brightnessStatus; | ||
} | ||
setColdColorStatus(color) { | ||
this.coldColorStatus = color.toEvenHex(); | ||
return this; | ||
} | ||
getColdColorStatus() { | ||
return this.coldColorStatus; | ||
} | ||
setWarmColorStatus(warm) { | ||
this.warmColorStatus = warm.toEvenHex(); | ||
return this; | ||
} | ||
getWarmColorStatus() { | ||
return this.warmColorStatus; | ||
} | ||
setTimeDelayStatus(timeDelay) { | ||
this.timeDelayStatus = timeDelay.toEvenHex(); | ||
return this; | ||
} | ||
getTimeDelayStatus() { | ||
return this.timeDelayStatus; | ||
} | ||
getExceptionStatus() { | ||
return this.exceptionStatus; | ||
} | ||
} | ||
exports.LampStatus = LampStatus; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTGFtcFN0YXR1cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9lbnRpdHkvTGFtcFN0YXR1cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxxQ0FBa0M7QUFDbEMsTUFBYSxVQUFXLFNBQVEsZUFBTTtJQUlwQyxZQUFZLE1BQWM7UUFDeEIsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBSkEscUJBQWdCLEdBQVcsRUFBRSxDQUFDO1FBQzlCLG9CQUFlLEdBQVcsRUFBRSxDQUFDO1FBSTNDLElBQUksQ0FBQyxnQkFBZ0IsR0FBRyxNQUFNLENBQUMsS0FBSyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztRQUMzQyxJQUFJLENBQUMsZUFBZSxHQUFHLE1BQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDO0lBQzVDLENBQUM7SUFFTSxtQkFBbUI7UUFDeEIsT0FBTyxJQUFJLENBQUMsZ0JBQWdCLENBQUM7SUFDL0IsQ0FBQztJQUNNLGtCQUFrQjtRQUN2QixPQUFPLElBQUksQ0FBQyxlQUFlLENBQUM7SUFDOUIsQ0FBQztDQUNGO0FBaEJELGdDQWdCQyJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTGFtcFN0YXR1c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FHLEtBQUssQ0FBQztJQUNyQixDQUFDO0lBQ00sUUFBUTtRQUNiLE9BQU8sSUFBSSxDQUFDLEtBQUssQ0FBQztJQUNwQixDQUFDO0lBQ00sYUFBYTtRQUNsQixPQUFPLElBQUksQ0FBQyxVQUFVLENBQUM7SUFDekIsQ0FBQztJQUNNLGNBQWM7UUFDbkIsT0FBTyxJQUFJLENBQUMsV0FBVyxDQUFDO0lBQzFCLENBQUM7SUFDTSxjQUFjO1FBQ25CLE9BQU8sSUFBSSxDQUFDLFdBQVcsQ0FBQztJQUMxQixDQUFDO0lBQ00sY0FBYztRQUNuQixPQUFPLElBQUksQ0FBQyxXQUFXLENBQUM7SUFDMUIsQ0FBQztDQUNGO0FBL0NELG9DQStDQyJ9 |
export declare class Status { | ||
readonly status: string; | ||
constructor(status: string); | ||
adaptHex(hex: string): string; | ||
} |
@@ -9,4 +9,9 @@ "use strict"; | ||
} | ||
adaptHex(hex) { | ||
if (!hex) | ||
return ''; | ||
return hex.length > 1 ? hex : `0${hex}`; | ||
} | ||
} | ||
exports.Status = Status; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RhdHVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2VudGl0eS9TdGF0dXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsTUFBYSxNQUFNO0lBRWpCLFlBQVksTUFBYztRQURWLFdBQU0sR0FBVyxFQUFFLENBQUM7UUFFbEMsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7SUFDdkIsQ0FBQztDQUNGO0FBTEQsd0JBS0MifQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3RhdHVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2VudGl0eS9TdGF0dXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsTUFBYSxNQUFNO0lBRWpCLFlBQVksTUFBYztRQURWLFdBQU0sR0FBVyxFQUFFLENBQUM7UUFFbEMsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7SUFDdkIsQ0FBQztJQUNNLFFBQVEsQ0FBQyxHQUFXO1FBQ3pCLElBQUksQ0FBQyxHQUFHO1lBQUUsT0FBTyxFQUFFLENBQUE7UUFDbkIsT0FBTyxHQUFHLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxJQUFJLEdBQUcsRUFBRSxDQUFDO0lBQzFDLENBQUM7Q0FnQkY7QUF4QkQsd0JBd0JDIn0= |
@@ -10,2 +10,5 @@ import './utils/string'; | ||
export * from './modules/ControlLampEquip'; | ||
export * from './modules/AirConditionEquip'; | ||
export * from './modules/HumidityEquip'; | ||
export * from './modules/SwitchEquip'; | ||
export * from './modules/SocketEquip'; |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* eslint-disable */ | ||
require("./utils/string"); | ||
@@ -23,3 +24,6 @@ __exportStar(require("./utils/converter"), exports); | ||
__exportStar(require("./modules/ControlLampEquip"), exports); | ||
__exportStar(require("./modules/AirConditionEquip"), exports); | ||
__exportStar(require("./modules/HumidityEquip"), exports); | ||
__exportStar(require("./modules/SwitchEquip"), exports); | ||
__exportStar(require("./modules/SocketEquip"), exports); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsMEJBQXdCO0FBQ3hCLG9EQUFrQztBQUNsQyxxREFBbUM7QUFDbkMsaURBQStCO0FBQy9CLG9EQUFrQztBQUVsQyxzREFBb0M7QUFDcEMsc0RBQW9DO0FBQ3BDLHlEQUF1QztBQUN2Qyw2REFBMkM7QUFFM0Msd0RBQXNDIn0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsb0JBQW9CO0FBQ3BCLDBCQUF3QjtBQUN4QixvREFBa0M7QUFDbEMscURBQW1DO0FBQ25DLGlEQUErQjtBQUMvQixvREFBa0M7QUFFbEMsc0RBQW9DO0FBQ3BDLHNEQUFvQztBQUNwQyx5REFBdUM7QUFDdkMsNkRBQTJDO0FBQzNDLDhEQUE0QztBQUM1QywwREFBd0M7QUFDeEMsd0RBQXNDO0FBQ3RDLHdEQUFzQyJ9 |
@@ -0,1 +1,3 @@ | ||
import { TypeHints } from '../utils/typeHints'; | ||
import { Converter } from '../utils/converter'; | ||
export declare class BaseEquip { | ||
@@ -5,5 +7,8 @@ readonly Suiter: {}; | ||
readonly SuitTypes: {}; | ||
readonly TypeHints: {}; | ||
readonly Converter: {}; | ||
constructor(); | ||
readonly TypeHints: typeof TypeHints; | ||
readonly Converter: typeof Converter; | ||
readonly primaryType: string | undefined; | ||
readonly secondaryType: string | undefined; | ||
readonly status: string; | ||
constructor(status: string, primaryType?: string, secondaryType?: string); | ||
getPrimaryStatusCode(mainDevType: string, status: string): string; | ||
@@ -10,0 +15,0 @@ getSecondaryStatusCode(mainDevType: string, secondarySubType: string, status: string): string; |
@@ -23,12 +23,20 @@ "use strict"; | ||
exports.BaseEquip = void 0; | ||
/* | ||
* @Author: eamiear | ||
* @Date: 2020-08-20 17:38:47 | ||
* @Last Modified by: eamiear | ||
* @Last Modified time: 2020-08-28 16:52:38 | ||
*/ | ||
const suiter_1 = __importStar(require("../utils/suiter")); | ||
const typeHints_1 = require("../utils/typeHints"); | ||
const converter_1 = require("../utils/converter"); | ||
// const _Converter = Converter | ||
class BaseEquip { | ||
constructor() { | ||
constructor(status, primaryType, secondaryType) { | ||
this.Suiter = {}; | ||
this.SuitStatus = {}; | ||
this.SuitTypes = {}; | ||
this.TypeHints = {}; | ||
this.Converter = {}; | ||
this.primaryType = ''; | ||
this.secondaryType = ''; | ||
this.status = ''; | ||
this.Suiter = suiter_1.default; | ||
@@ -39,2 +47,5 @@ this.SuitStatus = suiter_1.SuitStatus; | ||
this.Converter = converter_1.Converter; | ||
this.primaryType = primaryType; | ||
this.secondaryType = secondaryType; | ||
this.status = status; | ||
} | ||
@@ -74,2 +85,2 @@ getPrimaryStatusCode(mainDevType, status) { | ||
exports.BaseEquip = BaseEquip; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQmFzZUVxdWlwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL21vZHVsZXMvQmFzZUVxdWlwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSwwREFBZ0U7QUFDaEUsa0RBQStDO0FBQy9DLGtEQUErQztBQUUvQyxNQUFhLFNBQVM7SUFNcEI7UUFMZ0IsV0FBTSxHQUFHLEVBQUUsQ0FBQztRQUNaLGVBQVUsR0FBRyxFQUFFLENBQUM7UUFDaEIsY0FBUyxHQUFHLEVBQUUsQ0FBQztRQUNmLGNBQVMsR0FBRyxFQUFFLENBQUM7UUFDZixjQUFTLEdBQUcsRUFBRSxDQUFDO1FBRTdCLElBQUksQ0FBQyxNQUFNLEdBQUcsZ0JBQU0sQ0FBQztRQUNyQixJQUFJLENBQUMsVUFBVSxHQUFHLG1CQUFVLENBQUM7UUFDN0IsSUFBSSxDQUFDLFNBQVMsR0F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RUMifQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ControlLampEquip = void 0; | ||
/* | ||
* @Author: eamiear | ||
* @Date: 2020-08-20 17:38:54 | ||
* @Last Modified by: eamiear | ||
* @Last Modified time: 2020-08-20 17:38:54 | ||
*/ | ||
const LampEquip_1 = require("./LampEquip"); | ||
@@ -8,2 +14,2 @@ class ControlLampEquip extends LampEquip_1.LampEquip { | ||
exports.ControlLampEquip = ControlLampEquip; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29udHJvbExhbXBFcXVpcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9tb2R1bGVzL0NvbnRyb2xMYW1wRXF1aXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMkNBQXdDO0FBRXhDLE1BQWEsZ0JBQWlCLFNBQVEscUJBQVM7Q0FBRztBQUFsRCw0Q0FBa0QifQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29udHJvbExhbXBFcXVpcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9tb2R1bGVzL0NvbnRyb2xMYW1wRXF1aXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUE7Ozs7O0dBS0c7QUFDSCwyQ0FBd0M7QUFFeEMsTUFBYSxnQkFBaUIsU0FBUSxxQkFBUztDQUFHO0FBQWxELDRDQUFrRCJ9 |
import { BaseEquip } from './BaseEquip'; | ||
export declare class LampEquip extends BaseEquip { | ||
readonly primaryType: string | undefined; | ||
readonly secondaryType: string | undefined; | ||
readonly status: string; | ||
constructor(status: string, primaryType?: string, secondaryType?: string); | ||
} |
@@ -6,13 +6,13 @@ "use strict"; | ||
class LampEquip extends BaseEquip_1.BaseEquip { | ||
// public readonly primaryType: string | undefined = ''; | ||
// public readonly secondaryType: string | undefined = ''; | ||
// public readonly status: string = ''; | ||
constructor(status, primaryType, secondaryType) { | ||
super(); | ||
this.primaryType = ''; | ||
this.secondaryType = ''; | ||
this.status = ''; | ||
this.primaryType = primaryType; | ||
this.secondaryType = secondaryType; | ||
this.status = status; | ||
super(status, primaryType, secondaryType); | ||
// this.primaryType = primaryType; | ||
// this.secondaryType = secondaryType; | ||
// this.status = status; | ||
} | ||
} | ||
exports.LampEquip = LampEquip; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTGFtcEVxdWlwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL21vZHVsZXMvTGFtcEVxdWlwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDJDQUF3QztBQUV4QyxNQUFhLFNBQVUsU0FBUSxxQkFBUztJQUl0QyxZQUFZLE1BQWMsRUFBRSxXQUFvQixFQUFFLGFBQXNCO1FBQ3RFLEtBQUssRUFBRSxDQUFDO1FBSk0sZ0JBQVcsR0FBdUIsRUFBRSxDQUFDO1FBQ3JDLGtCQUFhLEdBQXVCLEVBQUUsQ0FBQztRQUN2QyxXQUFNLEdBQVcsRUFBRSxDQUFDO1FBR2xDLElBQUksQ0FBQyxXQUFXLEdBQUcsV0FBVyxDQUFDO1FBQy9CLElBQUksQ0FBQyxhQUFhLEdBQUcsYUFBYSxDQUFDO1FBQ25DLElBQUksQ0FBQyxNQUFNLEdBQUcsTUFBTSxDQUFDO0lBQ3ZCLENBQUM7Q0FDRjtBQVZELDhCQVVDIn0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTGFtcEVxdWlwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL21vZHVsZXMvTGFtcEVxdWlwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDJDQUF3QztBQUV4QyxNQUFhLFNBQVUsU0FBUSxxQkFBUztJQUN0Qyx3REFBd0Q7SUFDeEQsMERBQTBEO0lBQzFELHVDQUF1QztJQUN2QyxZQUFZLE1BQWMsRUFBRSxXQUFvQixFQUFFLGFBQXNCO1FBQ3RFLEtBQUssQ0FBQyxNQUFNLEVBQUUsV0FBVyxFQUFFLGFBQWEsQ0FBQyxDQUFDO1FBQzFDLGtDQUFrQztRQUNsQyxzQ0FBc0M7UUFDdEMsd0JBQXdCO0lBQzFCLENBQUM7Q0FDRjtBQVZELDhCQVVDIn0= |
import { LampEquip } from './LampEquip'; | ||
import { LampStatus } from '../entity/LampStatus'; | ||
/** | ||
* LED 灯(单色灯、双色灯) | ||
*/ | ||
export declare class LedLampEquip extends LampEquip { | ||
private bytes; | ||
private brightness; | ||
private coldColor; | ||
private warmColor; | ||
readonly lampStatus: LampStatus; | ||
private readonly bytes; | ||
constructor(status: string, primaryType?: string, secondaryType?: string); | ||
@@ -16,11 +18,47 @@ /** | ||
isPlainColor(): boolean; | ||
isPowerOn(): boolean; | ||
/** | ||
* 设置亮度值 | ||
* @param value 亮度值(0~100) | ||
*/ | ||
setBrightness(value: number): LedLampEquip; | ||
/** | ||
* 获取亮度值 | ||
*/ | ||
getBrightness(): number; | ||
/** | ||
* 设置冷色温值 | ||
* @param value 冷色值 | ||
*/ | ||
setColdColor(value: number): LedLampEquip; | ||
/** | ||
* 获取冷色温 | ||
*/ | ||
getColdColor(): number; | ||
/** | ||
* 设置暖色值 | ||
*/ | ||
setWarmColor(): LedLampEquip; | ||
/** | ||
* 获取暖色温 | ||
*/ | ||
getWarmColor(): string; | ||
/** | ||
* 获取设备字节状态字符串 | ||
*/ | ||
getBytes(): string; | ||
/** | ||
* 获取关灯字节状态字符串 | ||
*/ | ||
getTurnOffBytes(): string; | ||
/** | ||
* 获取关灯字节状态字符串 | ||
* @param bright 亮度 | ||
* @param cold 冷色值 | ||
*/ | ||
getTurnOnBytes(bright?: number, cold?: number): string; | ||
/** | ||
* 获取灯异常状态 | ||
*/ | ||
getLampExceptionStatus(): string; | ||
} |
"use strict"; | ||
/* | ||
* @Author: eamiear | ||
* @Date: 2020-08-20 16:08:49 | ||
* @Last Modified by: eamiear | ||
* @Last Modified time: 2020-08-29 21:41:52 | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LedLampEquip = void 0; | ||
const LampEquip_1 = require("./LampEquip"); | ||
const LampStatus_1 = require("../entity/LampStatus"); | ||
/** | ||
* LED 灯(单色灯、双色灯) | ||
*/ | ||
class LedLampEquip extends LampEquip_1.LampEquip { | ||
constructor(status, primaryType, secondaryType) { | ||
super(status, primaryType, secondaryType); | ||
this.bytes = `{0}{1}{2}000000000200`; | ||
this.brightness = ''; | ||
this.coldColor = ''; | ||
this.warmColor = ''; | ||
this.brightness = this.status.slice(0, 2); | ||
this.coldColor = this.status.slice(2, 4); | ||
this.warmColor = this.isBicolor() ? 'ff' : '00'; | ||
this.bytes = `{0}{1}{2}0000000200`; | ||
this.lampStatus = new LampStatus_1.LampStatus(status); | ||
} | ||
@@ -20,3 +25,4 @@ /** | ||
isBicolor() { | ||
return this.coldColor !== '00'; | ||
// return this.lampStatus.getColdColorStatus() !== '00'; | ||
return this.TypeHints.isBicolorLed(this.secondaryType); | ||
} | ||
@@ -29,2 +35,9 @@ /** | ||
} | ||
isPowerOn() { | ||
return this.getBrightness() > 0; | ||
} | ||
/** | ||
* 设置亮度值 | ||
* @param value 亮度值(0~100) | ||
*/ | ||
setBrightness(value) { | ||
@@ -35,14 +48,19 @@ if (value < 0 || value > 100) { | ||
} | ||
this.brightness = | ||
value === 0 | ||
? '00' | ||
: new this.Converter(+value + 154, 10).toHex(); | ||
const converter = new this.Converter(`${value + 154}`, 10); | ||
const status = value === 0 ? '00' : converter.toHex(); | ||
this.lampStatus.setBrightnessStatus(status); | ||
return this; | ||
} | ||
/** | ||
* 获取亮度值 | ||
*/ | ||
getBrightness() { | ||
const brightness = this.brightness | ||
? new this.Converter(this.brightness, 16).toDecimal() | ||
: 0; | ||
return brightness ? brightness - 154 : 0; | ||
const bright = this.lampStatus.getBrightnessStatus() || 0; | ||
const converter = new this.Converter(`${bright}`, 16); | ||
return bright ? +converter.toDecimal() - 154 : 0; | ||
} | ||
/** | ||
* 设置冷色温值 | ||
* @param value 冷色值 | ||
*/ | ||
setColdColor(value) { | ||
@@ -52,22 +70,41 @@ if (!value) { | ||
} | ||
const coldColor = new this.Converter(255 - Math.round(value * 2.55), 10).toHex(); | ||
this.coldColor = coldColor.length > 10 ? coldColor : `0${coldColor}`; | ||
const colorValue = 255 - Math.round(value * 2.55); | ||
const converter = new this.Converter(`${colorValue}`, 10); | ||
this.lampStatus.setColdColorStatus(converter.toHex()); | ||
return this; | ||
} | ||
/** | ||
* 获取冷色温 | ||
*/ | ||
getColdColor() { | ||
const coldColor = this.coldColor | ||
? new this.Converter(this.coldColor, 16).toDecimal() | ||
: 0; | ||
return 100 - Math.round(coldColor / 2.55); | ||
const colorValue = this.lampStatus.getColdColorStatus() || 0; | ||
const converter = new this.Converter(`${colorValue}`, 16); | ||
return 100 - Math.round(+converter.toDecimal() / 2.55); | ||
} | ||
/** | ||
* 设置暖色值 | ||
*/ | ||
setWarmColor() { | ||
this.warmColor = this.isBicolor() ? 'ff' : '00'; | ||
this.lampStatus.setWarmColorStatus(this.isBicolor() ? 'ff' : '00'); | ||
return this; | ||
} | ||
/** | ||
* 获取暖色温 | ||
*/ | ||
getWarmColor() { | ||
return this.warmColor; | ||
this.setWarmColor(); | ||
return this.lampStatus.getWarmColorStatus(); | ||
} | ||
/** | ||
* 获取设备字节状态字符串 | ||
*/ | ||
getBytes() { | ||
return this.bytes.format(this.brightness, this.coldColor, this.warmColor); | ||
const bright = this.lampStatus.getBrightnessStatus(); | ||
const coldColor = this.lampStatus.getColdColorStatus(); | ||
const warmColor = this.lampStatus.getWarmColorStatus(); | ||
return this.bytes.format(bright, coldColor, warmColor); | ||
} | ||
/** | ||
* 获取关灯字节状态字符串 | ||
*/ | ||
getTurnOffBytes() { | ||
@@ -79,2 +116,7 @@ return this.setBrightness(0) | ||
} | ||
/** | ||
* 获取关灯字节状态字符串 | ||
* @param bright 亮度 | ||
* @param cold 冷色值 | ||
*/ | ||
getTurnOnBytes(bright, cold) { | ||
@@ -86,4 +128,14 @@ return this.setBrightness(bright || 100) | ||
} | ||
/** | ||
* 获取灯异常状态 | ||
*/ | ||
getLampExceptionStatus() { | ||
const exception = this.lampStatus.getExceptionStatus(); | ||
const bits = exception.split(''); | ||
if (!bits || !bits.length) | ||
return '无异常'; | ||
return bits[0] === '1' ? '开路' : bits[1] === '1' ? '短路' : '无异常'; | ||
} | ||
} | ||
exports.LedLampEquip = LedLampEquip; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTGVkTGFtcEVxdWlwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL21vZHVsZXMvTGVkTGFtcEVxdWlwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDJDQUF3QztBQUV4QyxNQUFhLFlBQWEsU0FBUSxxQkFBUztJQU16QyxZQUFZLE1BQWMsRUFBRSxXQUFvQixFQUFFLGFBQXNCO1FBQ3RFLEtBQUssQ0FBQyxNQUFNLEVBQUUsV0FBVyxFQUFFLGFBQWEsQ0FBQyxDQUFDO1FBTnBDLFVBQUssR0FBRyx1QkFBdUIsQ0FBQztRQUNoQyxlQUFVLEdBQVcsRUFBRSxDQUFDO1FBQ3hCLGNBQVMsR0FBVyxFQUFFLENBQUM7UUFDdkIsY0FBUyxHQUFXLEVBQUUsQ0FBQztRQUk3QixJQUFJLENBQUMsVUFBVSxHQUFHLElBQUksQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztR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FQUFFO2FBQ2QsUUFBUSxFQUFFLENBQUM7SUFDaEIsQ0FBQztJQUNEOzs7O09BSUc7SUFDSSxjQUFjLENBQUMsTUFBZSxFQUFFLElBQWE7UUFDbEQsT0FBTyxJQUFJLENBQUMsYUFBYSxDQUFDLE1BQU0sSUFBSSxHQUFHLENBQUM7YUFDckMsWUFBWSxDQUFDLElBQUksSUFBSSxDQUFDLENBQUM7YUFDdkIsWUFBWSxFQUFFO2FBQ2QsUUFBUSxFQUFFLENBQUM7SUFDaEIsQ0FBQztJQUVEOztPQUVHO0lBQ0ksc0JBQXNCO1FBQzNCLE1BQU0sU0FBUyxHQUFHLElBQUksQ0FBQyxVQUFVLENBQUMsa0JBQWtCLEVBQUUsQ0FBQTtRQUN0RCxNQUFNLElBQUksR0FBRyxTQUFTLENBQUMsS0FBSyxDQUFDLEVBQUUsQ0FBQyxDQUFBO1FBQ2hDLElBQUksQ0FBQyxJQUFJLElBQUksQ0FBQyxJQUFJLENBQUMsTUFBTTtZQUFFLE9BQU8sS0FBSyxDQUFBO1FBQ3ZDLE9BQU8sSUFBSSxDQUFDLENBQUMsQ0FBQyxLQUFLLEdBQUcsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEtBQUssR0FBRyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQTtJQUNoRSxDQUFDO0NBQ0Y7QUF6SEQsb0NBeUhDIn0= |
import { BaseEquip } from './BaseEquip'; | ||
export declare class SocketEquip extends BaseEquip { | ||
readonly deviceType: string; | ||
readonly deviceSubType: string; | ||
readonly status: string; | ||
constructor(deviceType: string, deviceSubType: string, status: string); | ||
getDescriptor(): string; | ||
} |
@@ -6,19 +6,13 @@ "use strict"; | ||
class SocketEquip extends BaseEquip_1.BaseEquip { | ||
// public readonly deviceType: string = ''; | ||
// public readonly deviceSubType: string = ''; | ||
// public readonly status: string = ''; | ||
constructor(deviceType, deviceSubType, status) { | ||
super(); | ||
this.deviceType = ''; | ||
this.deviceSubType = ''; | ||
this.status = ''; | ||
this.deviceType = deviceType; | ||
this.deviceSubType = deviceSubType; | ||
this.status = status; | ||
super(status, deviceType, deviceSubType); | ||
// this.deviceType = deviceType; | ||
// this.deviceSubType = deviceSubType; | ||
// this.status = status; | ||
} | ||
getDescriptor() { | ||
if (!this.deviceSubType) { | ||
return this.getMainDescriptor(this.deviceType, this.status); | ||
} | ||
return ''; | ||
} | ||
} | ||
exports.SocketEquip = SocketEquip; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU29ja2V0RXF1aXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9kdWxlcy9Tb2NrZXRFcXVpcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwyQ0FBd0M7QUFFeEMsTUFBYSxXQUFZLFNBQVEscUJBQVM7SUFJeEMsWUFBWSxVQUFrQixFQUFFLGFBQXFCLEVBQUUsTUFBYztRQUNuRSxLQUFLLEVBQUUsQ0FBQztRQUpNLGVBQVUsR0FBVyxFQUFFLENBQUM7UUFDeEIsa0JBQWEsR0FBVyxFQUFFLENBQUM7UUFDM0IsV0FBTSxHQUFXLEVBQUUsQ0FBQztRQUdsQyxJQUFJLENBQUMsVUFBVSxHQUFHLFVBQVUsQ0FBQztRQUM3QixJQUFJLENBQUMsYUFBYSxHQUFHLGFBQWEsQ0FBQztRQUNuQyxJQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztJQUN2QixDQUFDO0lBQ00sYUFBYTtRQUNsQixJQUFJLENBQUMsSUFBSSxDQUFDLGFBQWEsRUFBRTtZQUN2QixPQUFPLElBQUksQ0FBQyxpQkFBaUIsQ0FBQyxJQUFJLENBQUMsVUFBVSxFQUFFLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQztTQUM3RDtRQUNELE9BQU8sRUFBRSxDQUFDO0lBQ1osQ0FBQztDQUNGO0FBaEJELGtDQWdCQyJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU29ja2V0RXF1aXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9kdWxlcy9Tb2NrZXRFcXVpcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwyQ0FBd0M7QUFFeEMsTUFBYSxXQUFZLFNBQVEscUJBQVM7SUFDeEMsMkNBQTJDO0lBQzNDLDhDQUE4QztJQUM5Qyx1Q0FBdUM7SUFDdkMsWUFBWSxVQUFrQixFQUFFLGFBQXFCLEVBQUUsTUFBYztRQUNuRSxLQUFLLENBQUMsTUFBTSxFQUFFLFVBQVUsRUFBRSxhQUFhLENBQUMsQ0FBQztRQUN6QyxnQ0FBZ0M7UUFDaEMsc0NBQXNDO1FBQ3RDLHdCQUF3QjtJQUMxQixDQUFDO0NBT0Y7QUFoQkQsa0NBZ0JDIn0= |
@@ -0,9 +1,36 @@ | ||
/** | ||
* 转换器 | ||
*/ | ||
export declare class Converter { | ||
readonly value: string; | ||
readonly from: number; | ||
/** | ||
* @param value 待转换的数值字符串 | ||
* @param from 数值进制类型(二进制、八进制、十进制、十六进制) | ||
*/ | ||
constructor(value: string, from: number); | ||
/** | ||
* 转为二进制 | ||
*/ | ||
toBinary(): string; | ||
/** | ||
* 转为八进制 | ||
*/ | ||
toOctal(): string; | ||
/** | ||
* 转为十进制 | ||
*/ | ||
toDecimal(): string; | ||
/** | ||
* 转为十进制数值 | ||
*/ | ||
toDecimalNumber(): number; | ||
/** | ||
* 转为十六进制 | ||
*/ | ||
toHex(): string; | ||
/** | ||
* 获取指定长度字符串 | ||
* @param len 字符串长度 | ||
*/ | ||
fill(len: number): string; | ||
@@ -10,0 +37,0 @@ } |
@@ -31,3 +31,10 @@ "use strict"; | ||
}; | ||
/** | ||
* 转换器 | ||
*/ | ||
class Converter { | ||
/** | ||
* @param value 待转换的数值字符串 | ||
* @param from 数值进制类型(二进制、八进制、十进制、十六进制) | ||
*/ | ||
constructor(value, from) { | ||
@@ -43,14 +50,36 @@ this.value = ''; | ||
} | ||
/** | ||
* 转为二进制 | ||
*/ | ||
toBinary() { | ||
return _toBinary(this.value, this.from); | ||
} | ||
/** | ||
* 转为八进制 | ||
*/ | ||
toOctal() { | ||
return _toOctal(this.value, this.from); | ||
} | ||
/** | ||
* 转为十进制 | ||
*/ | ||
toDecimal() { | ||
return _toDecimal(this.value, this.from); | ||
} | ||
/** | ||
* 转为十进制数值 | ||
*/ | ||
toDecimalNumber() { | ||
return parseInt(this.value, this.from); | ||
} | ||
/** | ||
* 转为十六进制 | ||
*/ | ||
toHex() { | ||
return _toHex(this.value, this.from); | ||
} | ||
/** | ||
* 获取指定长度字符串 | ||
* @param len 字符串长度 | ||
*/ | ||
fill(len) { | ||
@@ -66,2 +95,2 @@ return _fillLength(this.value, len); | ||
exports.fillLength = _fillLength; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udmVydGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3V0aWxzL2NvbnZlcnRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTs7Ozs7O0dBTUc7QUFDSCxNQUFNLEdBQUcsR0FBRyxDQUFDLEtBQWEsRUFBRSxJQUFZLEVBQUUsRUFBVSxFQUFVLEVBQUU7SUFDOUQsT0FBTyxRQUFRLENBQUMsS0FBSyxFQUFFLElBQUksQ0FBQyxDQUFDLFFBQVEsQ0FBQyxFQUFFLENBQUMsQ0FBQztBQUM1QyxDQUFDLENBQUM7QUFFRixNQUFNLFNBQVMsR0FBRyxDQUFDLEtBQWEsRUFBRSxJQUFZLEVBQVUsRUFBRTtJQU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2YsUUFBQSxVQUFVLEdBQUcsV0FBVyxDQUFDIn0= |
@@ -0,1 +1,3 @@ | ||
import { Converter } from './converter'; | ||
import { TypeHints } from './typeHints'; | ||
/** | ||
@@ -5,8 +7,10 @@ * 状态描述器 | ||
declare class _Descriptor { | ||
readonly [x: string]: any; | ||
readonly Suiter: {}; | ||
readonly SuitStatus: {}; | ||
readonly SuitTypes: {}; | ||
readonly TypeHints: {}; | ||
readonly Converter: {}; | ||
readonly TypeHints: typeof TypeHints; | ||
readonly Converter: typeof Converter; | ||
constructor(); | ||
private _adaptHex; | ||
/** | ||
@@ -25,2 +29,8 @@ * 获取设备类型码 | ||
/** | ||
* @see {getEquipTypeDescriptor} | ||
* @param deviceType | ||
* @param deviceChildType | ||
*/ | ||
getTypeDescriptor(deviceType: string, deviceChildType: string): string; | ||
/** | ||
* 获取主设备状态码 | ||
@@ -56,3 +66,3 @@ * @param deviceType 主设备类型 | ||
*/ | ||
getSwitchDescriptor(status: string, deviceType: string, deviceChildType?: string): string; | ||
getSocketSwitchDescriptor(status: string, deviceType: string, deviceChildType?: string): string; | ||
/** | ||
@@ -64,6 +74,13 @@ * 获取灯状态描述 | ||
*/ | ||
getLampDescriptor(status: string, deviceType: string, deviceChildType: string): string; | ||
getSensorDescriptor(status: string, deviceType: string, deviceChildType: string): string; | ||
getLedDescriptor(status: string, deviceType: string, deviceChildType: string): string; | ||
getSensorsDescriptor(status: string, deviceType: string, deviceChildType: string): string; | ||
/** | ||
* 获取设备状态描述 | ||
* @param status 状态 16位字符串 | ||
* @param deviceType 设备类型 | ||
* @param deviceChildType 设备子类型 | ||
*/ | ||
getStatusDescriptor(status: string, deviceType: string, deviceChildType: string): string; | ||
} | ||
export declare const Descriptor: _Descriptor; | ||
export {}; |
@@ -27,3 +27,3 @@ "use strict"; | ||
const LampStatus_1 = require("../entity/LampStatus"); | ||
const SensorStatus_1 = require("../entity/SensorStatus"); | ||
const SensorStatus_1 = require("../entity/sensor/SensorStatus"); | ||
const SocketStatus_1 = require("../entity/SocketStatus"); | ||
@@ -38,4 +38,2 @@ /** | ||
this.SuitTypes = {}; | ||
this.TypeHints = {}; | ||
this.Converter = {}; | ||
this.Suiter = suiter_1.default; | ||
@@ -47,2 +45,5 @@ this.SuitStatus = suiter_1.SuitStatus; | ||
} | ||
_adaptHex(hex) { | ||
return hex.length > 1 ? hex : `0${hex}`; | ||
} | ||
/** | ||
@@ -59,4 +60,4 @@ * 获取设备类型码 | ||
return deviceChildType | ||
? `${deviceType}${deviceChildType}` | ||
: `${deviceType}`; | ||
? `${deviceType.toHexNumber().toEvenHex()}${deviceChildType.toHexNumber().toEvenHex()}` | ||
: `${deviceType.toHexNumber().toEvenHex()}`; | ||
} | ||
@@ -73,2 +74,10 @@ /** | ||
/** | ||
* @see {getEquipTypeDescriptor} | ||
* @param deviceType | ||
* @param deviceChildType | ||
*/ | ||
getTypeDescriptor(deviceType, deviceChildType) { | ||
return this.getEquipTypeDescriptor(deviceType, deviceChildType); | ||
} | ||
/** | ||
* 获取主设备状态码 | ||
@@ -83,3 +92,3 @@ * @param deviceType 主设备类型 | ||
} | ||
return `${deviceType}${status}`; | ||
return `${deviceType.toHexNumber().toEvenHex()}${status.toEvenHex()}`; | ||
} | ||
@@ -97,3 +106,3 @@ /** | ||
} | ||
return `${deviceType}${deviceChildType}${status}`; | ||
return `${deviceType.toHexNumber().toEvenHex()}${deviceChildType.toHexNumber().toEvenHex()}${status.toEvenHex()}`; | ||
} | ||
@@ -108,3 +117,3 @@ /** | ||
} | ||
return this.SuitStatus[code]; | ||
return this.SuitStatus[code.toEvenHex()]; | ||
} | ||
@@ -133,3 +142,3 @@ /** | ||
*/ | ||
getSwitchDescriptor(status, deviceType, deviceChildType) { | ||
getSocketSwitchDescriptor(status, deviceType, deviceChildType) { | ||
const socketStatus = new SocketStatus_1.SocketStatus(status); | ||
@@ -140,3 +149,3 @@ if (!deviceChildType) { | ||
const TypeHints = this.TypeHints; | ||
const bitlen = TypeHints.getSocketSwitchLen(deviceChildType); | ||
const bitlen = TypeHints.getSocketSwitchBitLen(deviceChildType); | ||
if (TypeHints.isPlugSocketSwitch(deviceChildType)) { | ||
@@ -170,6 +179,6 @@ const statusBitStr = converter_1.fillLength(socketStatus.getPlugStatus(), bitlen); | ||
*/ | ||
getLampDescriptor(status, deviceType, deviceChildType) { | ||
getLedDescriptor(status, deviceType, deviceChildType) { | ||
const lampStatus = new LampStatus_1.LampStatus(status); | ||
if (!deviceChildType) { | ||
return this.getMainDescriptor(deviceType, lampStatus.getNormalLampStatus()); | ||
return this.getMainDescriptor(deviceType, lampStatus.getBrightnessStatus()); | ||
} | ||
@@ -179,3 +188,3 @@ const TypeHints = this.TypeHints; | ||
if (TypeHints.isSimpleLed(deviceChildType)) { | ||
const normalStatus = lampStatus.getNormalLampStatus(); | ||
const normalStatus = lampStatus.getBrightnessStatus(); | ||
const converter = new Converter(normalStatus, 16); | ||
@@ -189,7 +198,7 @@ return normalStatus === '00' | ||
if (TypeHints.isColorLed(deviceChildType)) { | ||
const brightStatus = lampStatus.getNormalLampStatus(); | ||
const colorStatus = lampStatus.getColorLampStatus(); | ||
const brightStatus = lampStatus.getBrightnessStatus(); | ||
const colorStatus = lampStatus.getColdColorStatus(); | ||
const isPowerOn = brightStatus !== '00'; | ||
const brightValue = new Converter(brightStatus, 16).toDecimal(brightStatus); | ||
const colorValue = new Converter(colorStatus, 16).toDecimal(brightStatus); | ||
const brightValue = new Converter(brightStatus, 16).toDecimal(); | ||
const colorValue = new Converter(colorStatus, 16).toDecimal(); | ||
return isPowerOn ? `亮度:${brightValue}-冷色:${colorValue}` : '关'; | ||
@@ -199,11 +208,29 @@ } | ||
} | ||
getSensorDescriptor(status, deviceType, deviceChildType) { | ||
getSensorsDescriptor(status, deviceType, deviceChildType) { | ||
const sensorStatus = new SensorStatus_1.SensorStatus(status); | ||
if (!deviceChildType) { | ||
return this.getMainDescriptor(deviceType, sensorStatus.getSensorRootStatus()); | ||
return this.getMainDescriptor(deviceType, sensorStatus.getSensorNormalStatus()); | ||
} | ||
return ''; | ||
} | ||
/** | ||
* 获取设备状态描述 | ||
* @param status 状态 16位字符串 | ||
* @param deviceType 设备类型 | ||
* @param deviceChildType 设备子类型 | ||
*/ | ||
getStatusDescriptor(status, deviceType, deviceChildType) { | ||
const deviceTypeKey = Array.from(Object.keys(this.Suiter)).find(suitKey => { | ||
const suitKeyCapital = suitKey.toCapital(); | ||
return this.TypeHints[`is${suitKeyCapital}`].call(this.TypeHints, deviceType, deviceChildType) || ''; | ||
}); | ||
const statusMethodName = `get${deviceTypeKey === null || deviceTypeKey === void 0 ? void 0 : deviceTypeKey.toCapital()}Descriptor`; | ||
if (this[statusMethodName]) { | ||
return this[statusMethodName].call(this, status, deviceType, deviceChildType); | ||
} | ||
return ''; | ||
} | ||
} | ||
// 状态描述器 | ||
exports.Descriptor = new _Descriptor(); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGVzY3JpcHRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlscy9EZXNjcmlwdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSwyQ0FBb0Q7QUFDcEQsMkNBQXdDO0FBQ3hDLDBEQUFnRTtBQUNoRSxxREFBa0Q7QUFDbEQseURBQXNEO0FBQ3RELHlEQUFzRDtBQUV0RDs7R0FFRztBQUNILE1BQU0sV0FBVztJQU1mO1FBTGdCLFdBQU0sR0FBRyxFQUFFLENBQUM7UUFDWixlQUFVLEdBQUcsRUFBRSxDQUFDO1FBQ2hCLGNBQVMsR0FBRyxFQUFFLENBQUM7UUFDZixjQUFTLEdBQUcsRUFBRSxDQUFDO1FBQ2YsY0FBUyxHQUFHLEVBQUUsQ0FBQztRQUU3QixJQUFJLENBQUMsTUFBTSxHQUFHLGdCQUFNLENBQUM7UUFD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TyxFQUFFLENBQUE7SUFDWCxDQUFDO0NBQ0Y7QUFFRCxRQUFRO0FBQ0ssUUFBQSxVQUFVLEdBQUcsSUFBSSxXQUFXLEVBQUUsQ0FBQyJ9 |
@@ -6,3 +6,3 @@ "use strict"; | ||
* @Last Modified by: eamiear | ||
* @Last Modified time: 2020-08-18 09:40:46 | ||
* @Last Modified time: 2020-08-26 14:28:49 | ||
*/ | ||
@@ -29,2 +29,5 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// =================================== | ||
// 已废弃 | ||
// ===================================== | ||
const converter_1 = require("./converter"); | ||
@@ -95,3 +98,3 @@ const typeHints_1 = require("./typeHints"); | ||
const TypeHints = this.TypeHints; | ||
const bitlen = TypeHints.getSocketSwitchLen(deviceChildType); | ||
const bitlen = TypeHints.getSocketSwitchBitLen(deviceChildType); | ||
if (TypeHints.isPlugSocketSwitch(deviceChildType)) { | ||
@@ -121,2 +124,2 @@ const statusBitStr = converter_1.fillLength(socketStatus.getPlugStatus(), bitlen); | ||
// export default new StatusDescriptor() | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhdHVzRGVzY3JpcHRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy91dGlscy9zdGF0dXNEZXNjcmlwdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7R0FLRzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRUgsMkNBQW9EO0FBQ3BELDJDQUF3QztBQUN4QywwREFBZ0U7QUFDaEUsb0RBQW9EO0FBQ3BELHdEQUF3RDtBQUN4RCx5REFBc0Q7QUFDdEQ7Ozs7Ozs7O0dBUUc7QUFDSCxNQUFNLGdCQUFnQjtJQU1wQjtRQUxnQixXQUFNLEdBQUcsRUFBRSxDQUFDO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QUksQ0FBQyxjQUFjLENBQUMsVUFBVSxFQUFFLFlBQVksQ0FBQyxDQUFDO1NBQ3REO1FBQ0QsSUFBSSxTQUFTLENBQUMsbUJBQW1CLENBQUMsZUFBZSxDQUFDLEVBQUU7WUFDbEQsTUFBTSxZQUFZLEdBQUcsc0JBQVUsQ0FBQyxZQUFZLENBQUMsY0FBYyxFQUFFLEVBQUUsTUFBTSxDQUFDLENBQUM7WUFDdkUsT0FBTyxJQUFJLENBQUMsY0FBYyxDQUFDLFVBQVUsRUFBRSxZQUFZLENBQUMsQ0FBQztTQUN0RDtRQUNELE9BQU8sRUFBRSxDQUFDO0lBQ1osQ0FBQztDQW1RRjtBQUVELHdDQUF3QyJ9 |
@@ -8,2 +8,37 @@ "use strict"; | ||
}; | ||
/** | ||
* 向左补充0, 默认16位 | ||
*/ | ||
String.prototype.padLeft = function (maxLength = 16) { | ||
return this.padStart(maxLength, '0'); | ||
}; | ||
/** | ||
* 向右补充0,默认16位 | ||
*/ | ||
String.prototype.padRight = function (maxLength = 16) { | ||
return this.padEnd(maxLength, '0'); | ||
}; | ||
/** | ||
* 转为16进制数值字符串 | ||
*/ | ||
String.prototype.toHexNumber = function () { | ||
if (!this.toString()) | ||
return ''; | ||
return parseInt(this.toString(), 16).toString(); | ||
}; | ||
// 单个数字转为偶数 | ||
String.prototype.toEven = function () { | ||
return this.toString().length > 1 ? this.toString() : this.padLeft(2); | ||
}; | ||
String.prototype.toEvenHex = function () { | ||
return this.toEven(); | ||
}; | ||
/** | ||
* 16进制数组转为偶数16进制字符串 | ||
*/ | ||
String.prototype.toEvenHexWithArray = function (hex) { | ||
if (!hex || !hex.length) | ||
return ''; | ||
return hex.map(h => h.toEvenHex()).join(''); | ||
}; | ||
String.prototype.format = function (..._args) { | ||
@@ -13,8 +48,17 @@ if (arguments.length === 0) { | ||
} | ||
const param = arguments[0]; | ||
let s = this; | ||
for (let i = 0; i < arguments.length; i++) { | ||
s = s.replace(new RegExp('\\{' + i + '\\}', 'g'), arguments[i]); | ||
if (typeof param === 'object') { | ||
for (let key in param) { | ||
s = s.replace(new RegExp('\\{' + key + '\\}', 'g'), param[key]); | ||
} | ||
return s.toString(); | ||
} | ||
return s.toString(); | ||
else { | ||
for (let i = 0; i < arguments.length; i++) { | ||
s = s.replace(new RegExp('\\{' + i + '\\}', 'g'), arguments[i]); | ||
} | ||
return s.toString(); | ||
} | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3V0aWxzL3N0cmluZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsTUFBTSxDQUFDLFNBQVMsQ0FBQyxTQUFTLEdBQUc7SUFDM0IsT0FBTyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxXQUFXLEVBQUUsR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDO0FBQ3hELENBQUMsQ0FBQztBQUVGLE1BQU0sQ0FBQyxTQUFTLENBQUMsT0FBTyxHQUFHO0lBQ3pCLE9BQU8sSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsV0FBVyxFQUFFLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQztBQUN4RCxDQUFDLENBQUM7QUFFRixNQUFNLENBQUMsU0FBUyxDQUFDLE1BQU0sR0FBRyxVQUFTLEdBQUcsS0FBd0I7SUFDNUQsSUFBSSxTQUFTLENBQUMsTUFBTSxLQUFLLENBQUMsRUFBRTtRQUMxQixPQUFPLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQztLQUN4QjtJQUNELElBQUksQ0FBQyxHQUFHLElBQUksQ0FBQztJQUNiLEtBQUssSUFBSSxDQUF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MsQ0FBQyxDQUFDLENBQUMsQ0FBQztTQUNqRTtRQUNELE9BQU8sQ0FBQyxDQUFDLFFBQVEsRUFBRSxDQUFDO0tBQ3JCO0FBQ0gsQ0FBQyxDQUFDIn0= |
/** | ||
* @description 套件配置表模块<br> | ||
* 套件配置表模块 | ||
* | ||
* 主类型、子类型均为16机制值 | ||
* <pre> | ||
@@ -14,4 +16,2 @@ * object<string, string> type: 设备类型匹配表. | ||
* </pre> | ||
* @namespace | ||
* @name Suiter | ||
*/ | ||
@@ -56,2 +56,3 @@ export declare const Suiter: { | ||
way: string[]; | ||
bicolor: string[]; | ||
}; | ||
@@ -130,2 +131,3 @@ }; | ||
scene: string[]; | ||
settableScene: string[]; | ||
mix: string[]; | ||
@@ -136,3 +138,22 @@ mixup: string[]; | ||
plug: string[]; | ||
xkey: string[]; | ||
}; | ||
typeIndex: { | ||
'0421': string; | ||
'0422': string; | ||
'0423': string; | ||
'0424': string; | ||
'0431': string; | ||
'0432': string; | ||
'0433': string; | ||
'0434': string; | ||
'0436': string; | ||
'04122': string; | ||
'0441': string; | ||
'0442': string; | ||
'0443': string; | ||
'0451': string; | ||
'0452': string; | ||
'0462': string; | ||
}; | ||
statusLength: { | ||
@@ -186,5 +207,5 @@ '01': number; | ||
* 智能空气净化器 | ||
* @namespace Suiter.airCleaner | ||
* @namespace Suiter.airCondition | ||
*/ | ||
airCleaner: { | ||
airCondition: { | ||
type: { | ||
@@ -296,2 +317,3 @@ '07': string; | ||
cardSense: string[]; | ||
pluginPower: string[]; | ||
envSense: string[]; | ||
@@ -442,5 +464,2 @@ induction: string[]; | ||
* 套件类型 | ||
* @const | ||
* @memberof Suiter | ||
* @name SuitTypes | ||
*/ | ||
@@ -450,7 +469,4 @@ export declare const SuitTypes: string; | ||
* 套件状态,整合所有设备状态 | ||
* @const | ||
* @memberof Suiter | ||
* @name SuitStatus | ||
*/ | ||
export declare const SuitStatus: string; | ||
export default Suiter; |
@@ -5,3 +5,5 @@ "use strict"; | ||
/** | ||
* @description 套件配置表模块<br> | ||
* 套件配置表模块 | ||
* | ||
* 主类型、子类型均为16机制值 | ||
* <pre> | ||
@@ -18,4 +20,2 @@ * object<string, string> type: 设备类型匹配表. | ||
* </pre> | ||
* @namespace | ||
* @name Suiter | ||
*/ | ||
@@ -67,3 +67,5 @@ exports.Suiter = { | ||
color: ['03'], | ||
way: ['13'] | ||
way: ['13'], | ||
// 双色灯 | ||
bicolor: ['02', '03'] | ||
} | ||
@@ -149,2 +151,4 @@ }, | ||
scene: ['31', '32', '33', '35'], | ||
// 可设置情景面板 | ||
settableScene: ['122'], | ||
// 混合面板 byte[1] | ||
@@ -157,4 +161,25 @@ mix: ['41', '42', '43', '62', '83'], | ||
simple: ['01', '12', '13', '14'], | ||
plug: ['01', '12', '13', '14'] | ||
plug: ['01', '12', '13', '14'], | ||
// x 路开关 | ||
xkey: ['23'] | ||
}, | ||
// 设备类型索引 一键开关 -> 1 | ||
typeIndex: { | ||
'0421': '1', | ||
'0422': '2', | ||
'0423': '3', | ||
'0424': '4', | ||
'0431': '1', | ||
'0432': '2', | ||
'0433': '3', | ||
'0434': '4', | ||
'0436': '6', | ||
'04122': '6', | ||
'0441': '1|3', | ||
'0442': '2|3', | ||
'0443': '3|3', | ||
'0451': '1', | ||
'0452': '2', | ||
'0462': '2|2' | ||
}, | ||
statusLength: { | ||
@@ -210,7 +235,7 @@ // 不同设备的状态码长度取值 | ||
* 智能空气净化器 | ||
* @namespace Suiter.airCleaner | ||
* @namespace Suiter.airCondition | ||
*/ | ||
airCleaner: { | ||
airCondition: { | ||
type: { | ||
'07': '智能空气净化器' | ||
'07': '空调' | ||
} | ||
@@ -220,3 +245,3 @@ }, | ||
type: { | ||
'08': '兼容型智能电视' | ||
'08': '电视' | ||
} | ||
@@ -324,2 +349,3 @@ }, | ||
cardSense: ['15'], | ||
pluginPower: ['15'], | ||
envSense: ['16'], | ||
@@ -472,5 +498,2 @@ induction: ['17'], | ||
* 套件类型 | ||
* @const | ||
* @memberof Suiter | ||
* @name SuitTypes | ||
*/ | ||
@@ -484,9 +507,6 @@ exports.SuitTypes = Array.from(Object.keys(exports.Suiter)).reduce( | ||
// @ts-ignore | ||
return Object.assign(Object.assign({}, item), (exports.Suiter[next].type)); | ||
return Object.assign(Object.assign({}, item), exports.Suiter[next].type); | ||
}); | ||
/** | ||
* 套件状态,整合所有设备状态 | ||
* @const | ||
* @memberof Suiter | ||
* @name SuitStatus | ||
*/ | ||
@@ -503,2 +523,2 @@ exports.SuitStatus = Array.from(Object.keys(exports.Suiter)).reduce( | ||
exports.default = exports.Suiter; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VpdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3V0aWxzL3N1aXRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTs7Ozs7Ozs7Ozs7Ozs7O0dBZUc7QUFDVSxRQUFBLE1BQU0sR0FBRztJQUNwQixHQUFHLEVBQUU7UUFDSDs7V0FFRztRQUNILElBQUksRUFBRTtZQUNKLElBQUksRUFBRSxHQUFHO1lBQ1QsTUFBTSxFQUFFLEtBQUs7WUFDYixNQUFNLEVBQUUsS0FBSztZQUNiLE1BQU0sRUFBRSxLQUFLO1lBQ2IsTUFBTSxFQUFFLFFBQVE7WUFDaEIsTUFBTSxFQUFFLFFBQVE7WUFDaEIsTUFBTSxFQUFFLE1BQU07WUFDZCxNQUFNLEVBQUUsRUFBRTtZQUNWLE1BQU0sRUFBRSxFQUFFO1lBQ1YsTUFBTSxFQUFFLEVBQUU7WUFDVixNQUFNLEVBQUUsT0FBTztZQUNmLE1BQU0sRUFBRSxFQUFFO1lBQ1YsTUFBTSxFQUFFLEVBQUU7WUFDVixNQUFNLEVBQUUsRUFBRTtZQUNWLE1BQU0sRUFBRSxFQUFFO1lBQ1YsTUFBTSxFQUFFLEtBQUs7U0FDZDtRQ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UksR0FBSSxjQUFjLENBQUMsSUFBSSxDQUFDLENBQUMsSUFBSSxDQUFDO0tBQ25DO0lBQ0QsYUFBYTtJQUNiLHVDQUFZLElBQUksR0FBTSxjQUFjLENBQUMsSUFBSSxDQUFDLENBQUMsSUFBSSxFQUFHO0FBQ3BELENBQUMsQ0FDRixDQUFDO0FBRUY7O0dBRUc7QUFDVSxRQUFBLFVBQVUsR0FBRyxLQUFLLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsY0FBTSxDQUFDLENBQUMsQ0FBQyxNQUFNO0FBQzlELGFBQWE7QUFDYixDQUFDLElBQUksRUFBRSxJQUFJLEVBQUUsS0FBSyxFQUFFLEVBQUU7SUFDcEIsSUFBSSxLQUFLLEtBQUssQ0FBQyxFQUFFO1FBQ2YsSUFBSSxHQUFJLGNBQWMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxNQUFNLENBQUM7S0FDckM7SUFDRCxhQUFhO0lBQ2IsdUNBQVksSUFBSSxHQUFNLGNBQWMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxNQUFNLEVBQUc7QUFDdEQsQ0FBQyxDQUNGLENBQUM7QUFFRixrQkFBZSxjQUFNLENBQUMifQ== |
import './string'; | ||
/** | ||
* 类型检测器 | ||
*/ | ||
declare class _TypeHints { | ||
[x: string]: any; | ||
readonly [x: string]: any; | ||
constructor(); | ||
@@ -18,4 +21,20 @@ /** | ||
private __hasGroupType; | ||
/** | ||
* 获取设备类型 | ||
* @param typeIndex 类型索引对象 | ||
* @param deviceType 设备类型 | ||
* @param deviceChildType 设备子类型 | ||
*/ | ||
private __getTypeIndex; | ||
/** | ||
* 设备类型判断处理器 | ||
* led ===> isLed(deviceType, deviceSubType) | ||
*/ | ||
private __normalTypeProcessor; | ||
/** | ||
* 分组设备类型判断处理器 | ||
* led: {group: {simple}} --> isSimpleLed(deviceSubType) | ||
*/ | ||
private __groupTypeProcessor; | ||
private __typeIndexPocessor; | ||
private __statusLengthProcessor; | ||
@@ -22,0 +41,0 @@ } |
@@ -10,2 +10,5 @@ "use strict"; | ||
const Suiter = suiter_1.default; | ||
/** | ||
* 类型检测器 | ||
*/ | ||
class _TypeHints { | ||
@@ -15,2 +18,3 @@ constructor() { | ||
this.__groupTypeProcessor(); | ||
this.__typeIndexPocessor(); | ||
this.__statusLengthProcessor(); | ||
@@ -29,5 +33,5 @@ } | ||
if (!subType) { | ||
return !!suitTypes[mainType]; | ||
return !!suitTypes[mainType.toHexNumber().toEvenHex()]; | ||
} | ||
return !!suitTypes[`${mainType}${subType}`]; | ||
return !!suitTypes[`${mainType.toHexNumber().toEvenHex()}${subType.toHexNumber().toEvenHex()}`]; | ||
} | ||
@@ -40,7 +44,20 @@ /** | ||
__hasGroupType(group, subType) { | ||
if (!group || !group.length) { | ||
if (!group || !group.length || !subType) { | ||
return false; | ||
} | ||
return group.includes(subType); | ||
return group.includes(subType.toHexNumber().toEvenHex()); | ||
} | ||
/** | ||
* 获取设备类型 | ||
* @param typeIndex 类型索引对象 | ||
* @param deviceType 设备类型 | ||
* @param deviceChildType 设备子类型 | ||
*/ | ||
__getTypeIndex(typeIndex, deviceType, deviceChildType) { | ||
return typeIndex[`${deviceType}${deviceChildType}`]; | ||
} | ||
/** | ||
* 设备类型判断处理器 | ||
* led ===> isLed(deviceType, deviceSubType) | ||
*/ | ||
__normalTypeProcessor() { | ||
@@ -55,2 +72,6 @@ Array.from(Object.keys(Suiter)).map(item => { | ||
} | ||
/** | ||
* 分组设备类型判断处理器 | ||
* led: {group: {simple}} --> isSimpleLed(deviceSubType) | ||
*/ | ||
__groupTypeProcessor() { | ||
@@ -70,2 +91,13 @@ Array.from(Object.keys(Suiter)).map(item => { | ||
} | ||
__typeIndexPocessor() { | ||
Array.from(Object.keys(Suiter)).map(item => { | ||
const typeIndex = Suiter[item].typeIndex; // {'0401': '1'} | ||
const mainType = item.toCapital(); | ||
if (typeIndex) { | ||
this[`get${mainType}TypeIndex`] = (deviceType, deviceChildType) => { | ||
return this.__getTypeIndex(typeIndex, deviceType, deviceChildType); | ||
}; | ||
} | ||
}); | ||
} | ||
__statusLengthProcessor() { | ||
@@ -84,2 +116,2 @@ Array.from(Object.keys(Suiter)).map(item => { | ||
exports.TypeHints = new _TypeHints(); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZUhpbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3V0aWxzL3R5cGVIaW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxvQkFBaUI7QUFDakIsc0RBQTRCO0FBQzVCLE1BQU0sTUFBTSxHQUFRLGdCQUFJLENBQUM7QUFDekIsTUFBTSxVQUFVO0lBRWQ7UUFDRSxJQUFJLENBQUMscUJBQXFCLEVBQUUsQ0FBQztRQUM3QixJQUFJLENBQUMsb0JBQW9CLEVBQUUsQ0FBQztRQUM1QixJQUFJLENBQUMsdUJBQXVCLEVBQUUsQ0FBQztJQUNqQyxDQUFDO0lBRUQ7Ozs7O09BS0c7SUFDSyxlQUFlLENBQ3JCLFNBQWlCLEVBQ2pCLFFBQWdCLEVBQ2hCLE9BQWU7UUFFZixJQUFJLENBQUMsU0FBUyxFQUFFO1lBQ2QsT0FBTyxLQUFLLENBQUM7U0FDZDtRQUNELElBQUksQ0FBQyxPQUFPLEVBQUU7WUFDWixPQUFPLENBQUMsQ0FBRSxTQUFpQixDQUFDLFFBQVEsQ0FBQyxDQUFDO1NBQ3ZDO1FBQ0QsT0FBTyxDQUFDLENBQUUsU0FBaUIsQ0FBQyxHQUFHLFFBQVEsR0FBRyxPQUFPLEVBQUUsQ0FBQyxDQUFDO0lBQ3ZELENBQUM7SUFFRDs7OztPQUlHO0lBQ0ssY0FBYyxDQUFDLEtBQWEsRUFBRSxPQUFlO1FBQ25ELElBQUksQ0FBQyxLQUFLLElBQUksQ0FBQyxLQUFLLENBQU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UF1QixFQUNmLEVBQUU7b0JBQ1YsT0FBTyxJQUFJLENBQUMsY0FBYyxDQUFDLFNBQVMsRUFBRSxVQUFVLEVBQUUsZUFBZSxDQUFDLENBQUM7Z0JBQ3JFLENBQUMsQ0FBQzthQUNIO1FBQ0gsQ0FBQyxDQUFDLENBQUM7SUFDTCxDQUFDO0lBQ08sdUJBQXVCO1FBQzdCLEtBQUssQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsRUFBRTtZQUN6QyxNQUFNLFlBQVksR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUMsWUFBWSxDQUFDO1lBQy9DLE1BQU0sUUFBUSxHQUFHLElBQUksQ0FBQyxTQUFTLEVBQUUsQ0FBQztZQUNsQyxJQUFJLFlBQVksRUFBRTtnQkFDZixJQUFZLENBQUMsTUFBTSxRQUFRLFFBQVEsQ0FBQyxHQUFHLENBQ3RDLGFBQXFCLEVBQ2IsRUFBRTtvQkFDVixPQUFPLFlBQVksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLENBQUM7Z0JBQzFDLENBQUMsQ0FBQzthQUNIO1FBQ0gsQ0FBQyxDQUFDLENBQUM7SUFDTCxDQUFDO0NBQ0Y7QUFFWSxRQUFBLFNBQVMsR0FBRyxJQUFJLFVBQVUsRUFBRSxDQUFDIn0= |
@@ -5,2 +5,6 @@ # Changelog | ||
### [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) | ||
@@ -7,0 +11,0 @@ |
{ | ||
"name": "hardware-suit", | ||
"version": "1.1.1", | ||
"version": "1.1.3", | ||
"description": "hardware-suit javascript library", | ||
@@ -5,0 +5,0 @@ "main": "build/main/index.js", |
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
166714
54
3029