You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
595 B
35 lines
595 B
import { IsBoolean, IsString, Length } from "class-validator";
|
|
|
|
import type { Protobuf } from "@meshtastic/meshtasticjs";
|
|
|
|
export class MQTTValidation
|
|
implements
|
|
Omit<Protobuf.ModuleConfig_MQTTConfig, keyof Protobuf.native.Message>
|
|
{
|
|
@IsBoolean()
|
|
enabled: boolean;
|
|
|
|
@Length(0, 30)
|
|
address: string;
|
|
|
|
@Length(0, 30)
|
|
username: string;
|
|
|
|
@Length(0, 30)
|
|
password: string;
|
|
|
|
@IsBoolean()
|
|
encryptionEnabled: boolean;
|
|
|
|
@IsBoolean()
|
|
jsonEnabled: boolean;
|
|
|
|
@IsBoolean()
|
|
tlsEnabled: boolean;
|
|
|
|
@IsString()
|
|
root: string;
|
|
|
|
@IsBoolean()
|
|
proxyToClientEnabled: boolean;
|
|
}
|
|
|