update setWorkingModuleConfig to include mapReportSettings
This commit is contained in:
@@ -11,7 +11,10 @@ export const MQTT = (): JSX.Element => {
|
||||
new Protobuf.ModuleConfig.ModuleConfig({
|
||||
payloadVariant: {
|
||||
case: "mqtt",
|
||||
value: data,
|
||||
value: {
|
||||
...data,
|
||||
mapReportSettings: new Protobuf.ModuleConfig.ModuleConfig_MapReportSettings(data.mapReportSettings)
|
||||
},
|
||||
},
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -46,11 +46,11 @@ export class MqttValidationMapReportSettings
|
||||
implements
|
||||
Omit<Protobuf.ModuleConfig.ModuleConfig_MapReportSettings, keyof Message>
|
||||
{
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
@IsOptional()
|
||||
publishIntervalSecs: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
@IsOptional()
|
||||
positionPrecision: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user