You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Release 1.0.0
### Improvements
- Reconnection timer of 5 seconds in case the connection is lost (broker is rebooted)
- Showing in the message log if connection/reconnection failed
- Changed a couple of misleading labels for MQTTS in UI
### Bugfix
- Bug of multiple function calls by the same event when topic of the event is changed. Solved by deregistering from event if the topic of the event is changed
- 'passwords' changed to 'password' as the parameter is called mqttClient_Model.parameters.password
---------
Co-authored-by: Roy Gollub <roy.gollub@sick.de>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,17 @@
1
1
# Changelog
2
2
All notable changes to this project will be documented in this file.
3
3
4
+
## Release 1.0.0
5
+
6
+
### Improvements
7
+
- Reconnection timer of 5 seconds in case the connection is lost (broker is rebooted)
8
+
- Showing in the message log if connection/reconnection failed
9
+
- Changed a couple of misleading labels for MQTTS in UI
10
+
11
+
### Bugfix
12
+
- Bug of multiple function calls by the same event when topic of the event is changed. Solved by deregistering from event if the topic of the event is changed
13
+
- 'passwords' changed to 'password' as the parameter is called mqttClient_Model.parameters.password
Copy file name to clipboardExpand all lines: CSK_Module_MQTTClient/project.mf.xml
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ It is also possible to get the MQTTClient handle via "getMQTTHandle" to use this
23
23
**4) Publish** +
24
24
It is possible to publish MQTT messages via "publish" (via script) or "publishViaUI (via UI) to use preset values (check "presetPublish..."-functions) +
25
25
Additionally it is possible to configure the module to listen / wait for specific events of other modules/apps and to forward their content to predefined topics with predefined QoS/Retain. +
26
-
This can be used e.g. to listen to "OtherModule.OnNewResult"-events and to forward the results via MQTT. +
26
+
This can be used e.g. to listen to "OtherModule.OnNewResult"-events and to forward the results via MQTT (data will be forwarded to data type 'string'). +
27
27
To do so make use of "addPublishEvent" (via script) or the "presetPublish"-functions (incl. "presetPublishEvent") and "addPublishEventViaUI". +
28
28
{empty} +
29
29
**5) WillMessage** +
@@ -308,7 +308,7 @@ Configure a WillMessage via "setWillMessageConfig" (via script) or "setWillMessa
308
308
<desc>Function to unsubscribe from preselected topic via UI (see "selectSubscriptionViaUI").</desc>
309
309
</function>
310
310
<functionname="addPublishEvent">
311
-
<desc>Function to add an event to listen to and forward content if notified with configured MQTT publish message.</desc>
311
+
<desc>Function to add an event to listen to and forward content (as string) if notified with configured MQTT publish message.</desc>
312
312
<paramdesc="Name of event to register (event with one parameter expected)."multiplicity="1"name="event"type="string"/>
313
313
<paramdesc="Data content of the event will be publsihed to this MQTT topic."multiplicity="1"name="topic"type="string"/>
314
314
<paramdesc="QoS of publish message."multiplicity="1"name="qos"ref="CSK_MQTTClient.QOS"type="enum"/>
@@ -323,7 +323,7 @@ Configure a WillMessage via "setWillMessageConfig" (via script) or "setWillMessa
323
323
<paramdesc="Name of event"multiplicity="1"name="name"type="string"/>
324
324
</function>
325
325
<functionname="addPublishEventViaUI">
326
-
<desc>Function to add a preset event with preset configuration (topic, QoS, Retain) to listen to and to forward content via MQTT publish.</desc>
326
+
<desc>Function to add a preset event with preset configuration (topic, QoS, Retain) to listen to and to forward content (as string) via MQTT publish.</desc>
327
327
</function>
328
328
<functionname="selectPublishEvent">
329
329
<desc>Function to select event of list to publish via UI.</desc>
@@ -417,7 +417,7 @@ Configure a WillMessage via "setWillMessageConfig" (via script) or "setWillMessa
_G.logger:info(nameOfModule..": Register to event '" ..event.."' to forward its content via MQTT publish on topic '" ..topic.."'")
545
+
_G.logger:info(nameOfModule..": Register to event '" ..event.."' to forward its content via MQTT publish on topic '" ..mqttClient_Model.parameters.publishEvents.topic[event].."'")
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,13 @@ Data of registered events to be forwarded via MQTT are always published as conve
16
16
17
17
Tested on:
18
18
19
-
1. SIM1012 - Firmware 2.2.0
20
-
2. SICK AppEngine - Firmware 1.3.2
21
-
3. TDC-E - L4M 2023.1
19
+
|Device|Firmware version|Module version|
20
+
|--|--|--|
21
+
|SIM1012|V2.4.1|v1.0.0|
22
+
|SIM1012|V2.2.0|v0.4.1|
23
+
|SICK AppEngine|V1.5.0|v1.0.0|
24
+
|SICK AppEngine|V1.3.2|v0.4.1|
25
+
|TDC-E|L4M 2023.1|v0.4.1|
22
26
23
27
This module is part of the SICK AppSpace Coding Starter Kit developing approach.
24
28
It is programmed in an object oriented way. Some of these modules use kind of "classes" in Lua to make it possible to reuse code / classes in other projects.
0 commit comments