fix SUBSTREAM

This commit is contained in:
Ivan 2023-09-29 00:53:03 +03:00
parent 9a1e329adc
commit f0ef35acbe
Signed by untrusted user who does not match committer: ppechenkoo
GPG Key ID: 0C191B86D9582583

View File

@ -2211,20 +2211,6 @@ async function getParameters(serial) {
await new Promise(resolve => setTimeout(resolve, 300)); await new Promise(resolve => setTimeout(resolve, 300));
const requestResponse4 = await axios.get(`http://${process.env.SERVER_IP}:8080/http/parameters/request?serial=${serial}`, {
headers: {
'Content-Type': 'application/json',
},
data: JSON.stringify({
"FIELDS": [
"SUBSTRNET"
]
}),
});
await new Promise(resolve => setTimeout(resolve, 300));
const requestResponse5 = await axios.get(`http://${process.env.SERVER_IP}:8080/http/parameters/request?serial=${serial}`, { const requestResponse5 = await axios.get(`http://${process.env.SERVER_IP}:8080/http/parameters/request?serial=${serial}`, {
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
@ -2881,9 +2867,6 @@ app.put('/device-parameters', async (req, res) => {
"LANT": parseInt(LANGUAGE, 10), "LANT": parseInt(LANGUAGE, 10),
"GM": parseInt(GEOMOD, 10) "GM": parseInt(GEOMOD, 10)
}, },
"SUBSTRNET": {
"SM": parseInt(SUBSTREAMMODE, 10)
},
"EOSD": [ "EOSD": [
{ "GE": GE, "NE": NE, "SE": SE, "TE": TE, "VE": VE, "DE": DE }, { "GE": GE, "NE": NE, "SE": SE, "TE": TE, "VE": VE, "DE": DE },
{ "GE": GE, "NE": NE, "SE": SE, "TE": TE, "VE": VE, "DE": DE }, { "GE": GE, "NE": NE, "SE": SE, "TE": TE, "VE": VE, "DE": DE },