Initial 1.3.x rework
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { IsBoolean, Length } from "class-validator";
|
||||
|
||||
import type { Protobuf } from "@meshtastic/meshtasticjs";
|
||||
|
||||
export class MQTTValidation implements Protobuf.ModuleConfig_MQTTConfig {
|
||||
@IsBoolean()
|
||||
disabled: boolean;
|
||||
|
||||
@Length(0, 30)
|
||||
address: string;
|
||||
|
||||
@Length(0, 30)
|
||||
username: string;
|
||||
|
||||
@Length(0, 30)
|
||||
password: string;
|
||||
|
||||
@IsBoolean()
|
||||
encryptionEnabled: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user