Update main.js

master
Administrator 6 years ago
parent 19696e733c
commit 9c0933cb8a

@ -272,12 +272,15 @@ function checkObjects(options, regType, regName, regFullName, tasks, newObjects)
adapter.log.warn('regs=' + JSON.stringify(regs));
for (let i = 0; regs.length > i; i++) {
const id = adapter.namespace + '.' + regType + '.' + regs[i]._address;
const id = adapter.namespace + '.' + regType + '.' + regs[i]._address + '.' + regs[i].name;
regs[i].id = id;
adapter.log.warn('id=' + id);
regs[i].fullId = id;
objects[id] = {
_id: regs[i].id,
type: 'state',

Loading…
Cancel
Save