@node-red/nodes 4.0.8 → 4.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/common/21-debug.js
CHANGED
|
@@ -148,7 +148,7 @@ module.exports = function(RED) {
|
|
|
148
148
|
var st = (typeof output === 'string') ? output : util.inspect(output);
|
|
149
149
|
var fill = "grey";
|
|
150
150
|
var shape = "dot";
|
|
151
|
-
if (typeof output === 'object' &&
|
|
151
|
+
if (typeof output === 'object' && output?.fill && output?.shape && output?.text) {
|
|
152
152
|
fill = output.fill;
|
|
153
153
|
shape = output.shape;
|
|
154
154
|
st = output.text;
|
|
@@ -511,9 +511,10 @@ RED.debug = (function() {
|
|
|
511
511
|
typeHint: format,
|
|
512
512
|
hideKey: false,
|
|
513
513
|
path: path,
|
|
514
|
-
sourceId: sourceNode&&sourceNode.id,
|
|
514
|
+
sourceId: sourceNode && sourceNode.id,
|
|
515
515
|
rootPath: path,
|
|
516
516
|
nodeSelector: config.messageSourceClick,
|
|
517
|
+
enablePinning: true
|
|
517
518
|
});
|
|
518
519
|
// Do this in a separate step so the element functions aren't stripped
|
|
519
520
|
debugMessage.appendTo(el);
|
|
@@ -352,7 +352,9 @@ module.exports = function(RED) {
|
|
|
352
352
|
if (msgs.length === 0) {
|
|
353
353
|
done()
|
|
354
354
|
} else {
|
|
355
|
-
|
|
355
|
+
setImmediate(() => {
|
|
356
|
+
drainMessageGroup(msgs,count,done);
|
|
357
|
+
})
|
|
356
358
|
}
|
|
357
359
|
}
|
|
358
360
|
})
|
|
@@ -505,7 +507,9 @@ module.exports = function(RED) {
|
|
|
505
507
|
if (err) {
|
|
506
508
|
node.error(err,nextMsg);
|
|
507
509
|
}
|
|
508
|
-
|
|
510
|
+
setImmediate(() => {
|
|
511
|
+
processMessageQueue()
|
|
512
|
+
})
|
|
509
513
|
});
|
|
510
514
|
}
|
|
511
515
|
|
|
@@ -39,10 +39,36 @@
|
|
|
39
39
|
<dd><b>MQTTv5</b>: Ablaufzeit der Nachricht in Sekunden.</dd>
|
|
40
40
|
</dl>
|
|
41
41
|
<h3>Details</h3>
|
|
42
|
-
<p>Das abonnierte Topic darf
|
|
43
|
-
<p>
|
|
44
|
-
Eine neue Verbindung wird durch Klicken auf das Stiftsymbol erstellt.</p>
|
|
42
|
+
<p>Das abonnierte Topic darf MQTT-Platzhalterzeichen (wildcards) enthalten (+ für eine Ebene und # für mehrere Ebenen).</p>
|
|
43
|
+
<p>Diese Node erfordert eine Verbindung zu einem MQTT-Broker, der über die Auswahlliste selektiert werden kann. Eine neue Verbindung wird durch Klicken auf das Stiftsymbol erstellt.</p>
|
|
45
44
|
<p>Mehrere MQTT-Nodes (in oder out) können bei Bedarf dieselbe Broker-Verbindung nutzen.</p>
|
|
45
|
+
<h4>Dynamische Steuerung</h4>
|
|
46
|
+
Die von der Node genutzte Verbindung kann dynamisch gesteuert werden, wenn die MQTT-Node eine der folgenden Nachrichten erhält. Die Payload dieser Nachrichten werden nicht veröffentlicht.
|
|
47
|
+
<h4>Eingangsdaten</h4>
|
|
48
|
+
<p>Nur Verfügbar, wenn die Node für dynamische Abonnements konfiguriert wurde.</p>
|
|
49
|
+
<dl class="message-properties">
|
|
50
|
+
<dt>action <span class="property-type">string</span></dt>
|
|
51
|
+
<dd>Der Name der Aktion, die die MQTT-Node ausführen soll. Verfügbare Aktionen sind: <code>"connect"</code>, <code>"disconnect"</code>, <code>"getSubscriptions"</code>, <code>"subscribe"</code> und <code>"unsubscribe"</code>.</dd>
|
|
52
|
+
<dt class="optional">topic <span class="property-type">string|object|array</span></dt>
|
|
53
|
+
<dd>Bei den Aktionen <code>"subscribe"</code> und <code>"unsubscribe"</code> gibt diese Eigenschaft die MQTT-Topic an. Dabei kann es sich um Folgendes handeln:
|
|
54
|
+
<ul>
|
|
55
|
+
<li>eine Zeichenfolge, die den Topic-Filter enthält</li>
|
|
56
|
+
<li>ein Objekt mit den Eigenschaften <code>topic</code> und <code>qos</code></li>
|
|
57
|
+
<li>ein Array aus Zeichenfolgen oder Objekten, um mehrere Topics gleichzeitig zu verwalten</li>
|
|
58
|
+
</ul>
|
|
59
|
+
</dd>
|
|
60
|
+
<dt class="optional">broker <span class="property-type">broker</span> </dt>
|
|
61
|
+
<dd>Für die Aktion <code>"connect"</code> kann diese Eigenschaft jede der einzelnen Broker-Konfigurationseinstellungen überschreiben, einschließlich: <ul>
|
|
62
|
+
<li><code>broker</code></li>
|
|
63
|
+
<li><code>port</code></li>
|
|
64
|
+
<li><code>url</code> - überschreibt Broker/Port, um eine vollständige Verbindungs-URL bereitzustellen</li>
|
|
65
|
+
<li><code>username</code></li>
|
|
66
|
+
<li><code>password</code></li>
|
|
67
|
+
</ul>
|
|
68
|
+
<p>Wenn diese Eigenschaft gesetzt ist und der Broker bereits verbunden ist, wird ein Fehler protokolliert, es sei denn, die Eigenschaft <code>force</code> gesetzt - in diesem Fall wird die Verbindung zum Broker getrennt, die neuen Einstellungen angewendet und erneut verbunden.</p>
|
|
69
|
+
</dd>
|
|
70
|
+
</dl>
|
|
71
|
+
|
|
46
72
|
</script>
|
|
47
73
|
|
|
48
74
|
<script type="text/html" data-help-name="mqtt out">
|