version 2025-08-08; refactoring
This commit is contained in:
parent
1012544193
commit
cf16481324
2 changed files with 3 additions and 2 deletions
|
|
@ -1529,7 +1529,7 @@ exports.install = function(instance) {
|
||||||
// await keyword is important, otherwise incorrect data is returned!
|
// await keyword is important, otherwise incorrect data is returned!
|
||||||
await writeData(rsPort, resp, readBytes, timeout).then(function(data) {
|
await writeData(rsPort, resp, readBytes, timeout).then(function(data) {
|
||||||
|
|
||||||
//sometimes happens, that status of node changes even if line was turned off and should be offline. To prevent this, we return if line contactor is 0:
|
//sometimes happens, that status of node changes to OK, NOK even if line was turned off and should be status OFFLINE. To prevent this, we return if line contactor is 0:
|
||||||
if (itIsNodeCommand && line && relaysData[line].contactor !== 1) return;
|
if (itIsNodeCommand && line && relaysData[line].contactor !== 1) return;
|
||||||
|
|
||||||
endTime = new Date();
|
endTime = new Date();
|
||||||
|
|
@ -1650,6 +1650,7 @@ exports.install = function(instance) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// if node does not respond to request, we repeat request 3 times:
|
||||||
function repeatCommand(params) {
|
function repeatCommand(params) {
|
||||||
params.repeatCounter++;
|
params.repeatCounter++;
|
||||||
if (params.repeatCounter < 4) {
|
if (params.repeatCounter < 4) {
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ exports.install = async function(instance) {
|
||||||
Object.keys(dbs.nodesData).forEach(node => dbs.nodesData[node].readout = {})
|
Object.keys(dbs.nodesData).forEach(node => dbs.nodesData[node].readout = {})
|
||||||
|
|
||||||
dbs.settings = {
|
dbs.settings = {
|
||||||
edge_fw_version: "2025-07-08", //rok-mesiac-den
|
edge_fw_version: "2025-08-08", //rok-mesiac-den
|
||||||
language: responseSettings[0]["lang"],
|
language: responseSettings[0]["lang"],
|
||||||
rvo_name: responseSettings[0]["rvo_name"],
|
rvo_name: responseSettings[0]["rvo_name"],
|
||||||
project_id: responseSettings[0]["project_id"],
|
project_id: responseSettings[0]["project_id"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue