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