An dieser Stelle komme ich ins kurze Gras. Was mir auffällt, wenn ich die Seite des Displays (
http://192.168.1.102/openWB/web/display/) auf meinem Desktop anzeigen lasse und die chromium-Konsole aufmache ist, daß mehrere MQTT-Topics pro Sekunde mittels "addTopic" abonniert werden?
Sind das nur Daten, die ankommen, oder abonniert die Seite immer wieder ein Topic neu, sobald es empfangen wurde? Die Inhalte werden ja schon mit "Received message" gelogged. DIe Funktion updateTopic scheint mir dem Namen nach besser geeignet, aber ich kenne den Code nicht.
Beispiel:
Code: Alles auswählen
addTopic openWB/chargepoint/3/get/charge_state false
index-AtLAf1dw.js:2 Received message "true" from topic "openWB/chargepoint/3/get/plug_state"
index-AtLAf1dw.js:2 addTopic openWB/chargepoint/3/get/plug_state true
index-AtLAf1dw.js:2 Received message "0" from topic "openWB/chargepoint/3/set/current"
index-AtLAf1dw.js:2 addTopic openWB/chargepoint/3/set/current 0
index-AtLAf1dw.js:2 Received message "0" from topic "openWB/chargepoint/3/get/power"
index-AtLAf1dw.js:2 addTopic openWB/chargepoint/3/get/power 0
index-AtLAf1dw.js:2 Received message "1" from topic "openWB/chargepoint/3/get/phases_in_use"
index-AtLAf1dw.js:2 addTopic openWB/chargepoint/3/get/phases_in_use 1
index-AtLAf1dw.js:2 Received message "false" from topic "openWB/chargepoint/3/get/charge_state"
index-AtLAf1dw.js:2 addTopic openWB/chargepoint/3/get/charge_state false
index-AtLAf1dw.js:2 Received message "true" from topic "openWB/chargepoint/3/get/plug_state"
index-AtLAf1dw.js:2 addTopic openWB/chargepoint/3/get/plug_state true
index-AtLAf1dw.js:2 Received message "0" from topic "openWB/chargepoint/3/set/current"
index-AtLAf1dw.js:2 addTopic openWB/chargepoint/3/set/current 0
index-AtLAf1dw.js:2 Received message "0" from topic "openWB/chargepoint/3/get/power"
index-AtLAf1dw.js:2 addTopic openWB/chargepoint/3/get/power 0
index-AtLAf1dw.js:2 Received message "1" from topic "openWB/chargepoint/3/get/phases_in_use"
index-AtLAf1dw.js:2 addTopic openWB/chargepoint/3/get/phases_in_use 1
index-AtLAf1dw.js:2 Received message "false" from topic "openWB/chargepoint/3/get/charge_state"
index-AtLAf1dw.js:2 addTopic openWB/chargepoint/3/get/charge_state false
index-AtLAf1dw.js:2 Received message "true" from topic "openWB/chargepoint/3/get/plug_state"