WIP updates
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { IsEnum, IsInt } from "class-validator";
|
||||
import { IsBoolean, IsEnum, IsInt } from "class-validator";
|
||||
|
||||
import { Protobuf } from "@meshtastic/meshtasticjs";
|
||||
|
||||
@@ -11,4 +11,7 @@ export class DisplayValidation implements Protobuf.Config_DisplayConfig {
|
||||
|
||||
@IsInt()
|
||||
autoScreenCarouselSecs: number;
|
||||
|
||||
@IsBoolean()
|
||||
compassNorthTop: boolean;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
import { Length } from "class-validator";
|
||||
import { IsBoolean, IsEnum, Length } from "class-validator";
|
||||
|
||||
import type { Protobuf } from "@meshtastic/meshtasticjs";
|
||||
import { Protobuf } from "@meshtastic/meshtasticjs";
|
||||
|
||||
export class WiFiValidation implements Protobuf.Config_WiFiConfig {
|
||||
@IsBoolean()
|
||||
enabled: boolean;
|
||||
|
||||
@IsEnum(Protobuf.Config_WiFiConfig_WiFiMode)
|
||||
mode: Protobuf.Config_WiFiConfig_WiFiMode;
|
||||
|
||||
@Length(1, 33)
|
||||
ssid: string;
|
||||
|
||||
@Length(8, 64)
|
||||
psk: string;
|
||||
|
||||
apMode: boolean;
|
||||
|
||||
apHidden: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user