mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
add option for MQTT retain flag - #507
This commit is contained in:
@@ -149,6 +149,16 @@ class MqttSettingsForm extends React.Component<MqttSettingsFormProps> {
|
||||
<MenuItem value={1}>1</MenuItem>
|
||||
<MenuItem value={2}>2</MenuItem>
|
||||
</SelectValidator>
|
||||
<BlockFormControlLabel
|
||||
control={
|
||||
<Checkbox
|
||||
checked={data.mqtt_retain}
|
||||
onChange={handleValueChange('mqtt_retain')}
|
||||
value="mqtt_retain"
|
||||
/>
|
||||
}
|
||||
label="Retain Flag"
|
||||
/>
|
||||
<Typography variant="h6" color="primary" >
|
||||
Publish Intervals
|
||||
</Typography>
|
||||
|
||||
@@ -35,5 +35,6 @@ export interface MqttSettings {
|
||||
publish_time_sensor: number;
|
||||
mqtt_format: number;
|
||||
mqtt_qos: number;
|
||||
mqtt_retain: boolean;
|
||||
system_heartbeat: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user