Add new mqtt option & update deps
This commit is contained in:
@@ -100,6 +100,21 @@ export const MQTT = (): JSX.Element => {
|
||||
)}
|
||||
/>
|
||||
</FormField>
|
||||
<FormField
|
||||
label="JSON Output Enabled"
|
||||
description="Description"
|
||||
disabled={!moduleEnabled}
|
||||
isInvalid={!!errors.jsonEnabled?.message}
|
||||
validationMessage={errors.jsonEnabled?.message}
|
||||
>
|
||||
<Controller
|
||||
name="jsonEnabled"
|
||||
control={control}
|
||||
render={({ field: { value, ...field } }) => (
|
||||
<Switch height={24} marginLeft="auto" checked={value} {...field} />
|
||||
)}
|
||||
/>
|
||||
</FormField>
|
||||
</Form>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -42,7 +42,6 @@ export const Serial = ({ close }: CloseProps): JSX.Element => {
|
||||
const connection = new ISerialConnection(id);
|
||||
await connection.connect({
|
||||
port,
|
||||
baudRate: 115200,
|
||||
});
|
||||
device.addConnection(connection);
|
||||
subscribeAll(device, connection);
|
||||
|
||||
@@ -17,4 +17,7 @@ export class MQTTValidation implements Protobuf.ModuleConfig_MQTTConfig {
|
||||
|
||||
@IsBoolean()
|
||||
encryptionEnabled: boolean;
|
||||
|
||||
@IsBoolean()
|
||||
jsonEnabled: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user