From e7943aac8f5e18ffe89180cd8dbca42f3a816dcb Mon Sep 17 00:00:00 2001 From: Emil Stjerneman Date: Mon, 11 Dec 2023 00:48:44 +0100 Subject: [PATCH] Set and get baseunit password (#15) --- src/BaseUnit.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/BaseUnit.ts b/src/BaseUnit.ts index d13a15d..00cfa1e 100644 --- a/src/BaseUnit.ts +++ b/src/BaseUnit.ts @@ -171,6 +171,17 @@ export class BaseUnit { this._operationMode = value; } + /** + * Control password, if one has been assigned on the base unit. + */ + get password() { + return this.protocol.password; + } + + set password(password: string) { + this.protocol.password = password; + } + /** * ROM version string. */