mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
add Developer Mode and value to API Call
This commit is contained in:
@@ -42,6 +42,7 @@ export interface Settings {
|
|||||||
modbus_port: number;
|
modbus_port: number;
|
||||||
modbus_max_clients: number;
|
modbus_max_clients: number;
|
||||||
modbus_timeout: number;
|
modbus_timeout: number;
|
||||||
|
developer_mode: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export enum busConnectionStatus {
|
export enum busConnectionStatus {
|
||||||
@@ -273,6 +274,7 @@ export interface APIcall {
|
|||||||
device: string;
|
device: string;
|
||||||
cmd: string;
|
cmd: string;
|
||||||
id: number;
|
id: number;
|
||||||
|
value?: string; // optional
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Action {
|
export interface Action {
|
||||||
|
|||||||
@@ -686,6 +686,16 @@ const ApplicationSettings = () => {
|
|||||||
<Typography sx={{ pb: 1, pt: 2 }} variant="h6" color="primary">
|
<Typography sx={{ pb: 1, pt: 2 }} variant="h6" color="primary">
|
||||||
{LL.SPECIAL_FUNCTIONS()}
|
{LL.SPECIAL_FUNCTIONS()}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
<BlockFormControlLabel
|
||||||
|
control={
|
||||||
|
<Checkbox
|
||||||
|
checked={data.developer_mode}
|
||||||
|
onChange={updateFormValue}
|
||||||
|
name="developer_mode"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
label={LL.DEVELOPER_MODE()}
|
||||||
|
/>
|
||||||
<BlockFormControlLabel
|
<BlockFormControlLabel
|
||||||
control={
|
control={
|
||||||
<Checkbox
|
<Checkbox
|
||||||
@@ -696,7 +706,6 @@ const ApplicationSettings = () => {
|
|||||||
}
|
}
|
||||||
label={LL.HEATINGOFF()}
|
label={LL.HEATINGOFF()}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<BlockFormControlLabel
|
<BlockFormControlLabel
|
||||||
control={
|
control={
|
||||||
<Checkbox
|
<Checkbox
|
||||||
|
|||||||
Reference in New Issue
Block a user