|
|
|
@ -1,6 +1,6 @@ |
|
|
|
import type { Message } from "@bufbuild/protobuf"; |
|
|
|
import type { Protobuf } from "@meshtastic/js"; |
|
|
|
import { IsBoolean, IsString, Length, IsNumber } from "class-validator"; |
|
|
|
import { IsBoolean, IsString, Length, IsNumber, IsOptional } from "class-validator"; |
|
|
|
|
|
|
|
export class MqttValidation |
|
|
|
implements |
|
|
|
@ -46,9 +46,11 @@ export class MqttValidationMapReportSettings |
|
|
|
implements |
|
|
|
Omit<Protobuf.ModuleConfig.ModuleConfig_MapReportSettings, keyof Message> |
|
|
|
{ |
|
|
|
@IsOptional() |
|
|
|
@IsNumber() |
|
|
|
publishIntervalSecs: number; |
|
|
|
|
|
|
|
@IsOptional() |
|
|
|
@IsNumber() |
|
|
|
positionPrecision: number; |
|
|
|
} |
|
|
|
|