Remove OTA feature #1738

This commit is contained in:
proddy
2024-05-04 14:19:19 +02:00
parent 6537abedb9
commit dabb958f06
44 changed files with 291 additions and 824 deletions

View File

@@ -291,14 +291,6 @@ const list_networks = {
]
};
// OTA
const OTA_SETTINGS_ENDPOINT = REST_ENDPOINT_ROOT + 'otaSettings';
let ota_settings = {
enabled: false,
port: 8266,
password: 'ems-esp-neo'
};
// MQTT
const MQTT_SETTINGS_ENDPOINT = REST_ENDPOINT_ROOT + 'mqttSettings';
const MQTT_STATUS_ENDPOINT = REST_ENDPOINT_ROOT + 'mqttStatus';
@@ -389,7 +381,6 @@ const system_status = {
num_analogs: 1,
free_heap: 143,
ntp_status: 2,
ota_status: false,
mqtt_status: true,
ap_status: false
};
@@ -2339,15 +2330,6 @@ router
return status(200);
});
// OTA
router
.get(OTA_SETTINGS_ENDPOINT, () => ota_settings)
.post(OTA_SETTINGS_ENDPOINT, async (request: any) => {
ota_settings = await request.json();
console.log('ota settings saved', ota_settings);
return status(200);
});
// MQTT
router
.get(MQTT_SETTINGS_ENDPOINT, () => mqtt_settings)