Skip to content

Commit ae383e4

Browse files
committed
.
1 parent 610a886 commit ae383e4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

nodes/knxUltimateIoTBridge.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ module.exports = function (RED) {
244244
};
245245

246246
if (mapping.iotType === 'rest') {
247+
out.url = mapping.target || node.outputtopic || '';
247248
out.method = mapping.method || 'POST';
248249
if (mapping.property) out.property = mapping.property;
249250
out.timeout = mapping.timeout;
@@ -427,6 +428,14 @@ module.exports = function (RED) {
427428
retry: bridgeMapping.retry
428429
}
429430
};
431+
if (bridgeMapping.iotType === 'rest') {
432+
ack.url = bridgeMapping.target || '';
433+
ack.method = bridgeMapping.method || 'POST';
434+
}
435+
if (bridgeMapping.iotType === 'modbus') {
436+
ack.address = bridgeMapping.target;
437+
ack.modbusFunction = bridgeMapping.modbusFunction;
438+
}
430439
node.setNodeStatus({ fill: 'blue', shape: 'dot', text: 'IoT→KNX', mapping: bridgeMapping, payload: msg.payload });
431440
if (send) send([null, ack]); else node.send([null, ack]);
432441
if (done) done();

0 commit comments

Comments
 (0)