Initial 1.3.x rework
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import { IsBoolean, IsEnum, IsInt } from "class-validator";
|
||||
|
||||
import { Protobuf } from "@meshtastic/meshtasticjs";
|
||||
|
||||
export class TelemetryValidation
|
||||
implements Protobuf.ModuleConfig_TelemetryConfig
|
||||
{
|
||||
@IsInt()
|
||||
deviceUpdateInterval: number;
|
||||
|
||||
@IsInt()
|
||||
environmentUpdateInterval: number;
|
||||
|
||||
@IsBoolean()
|
||||
environmentMeasurementEnabled: boolean;
|
||||
|
||||
@IsBoolean()
|
||||
environmentScreenEnabled: boolean;
|
||||
|
||||
@IsInt()
|
||||
environmentReadErrorCountThreshold: number;
|
||||
|
||||
@IsInt()
|
||||
environmentRecoveryInterval: number;
|
||||
|
||||
@IsBoolean()
|
||||
environmentDisplayFahrenheit: boolean;
|
||||
|
||||
@IsEnum(Protobuf.TelemetrySensorType)
|
||||
environmentSensorType: Protobuf.TelemetrySensorType;
|
||||
|
||||
@IsInt()
|
||||
environmentSensorPin: number;
|
||||
}
|
||||
Reference in New Issue
Block a user