Skip to content

Commit 6cf0076

Browse files
Release 2.1.1 (#6)
# Release 2.1.1 ## Bugfix - Using credentials did not work properly
1 parent f7eebd3 commit 6cf0076

5 files changed

Lines changed: 14 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## Release 2.1.1
5+
6+
### Bugfix
7+
- Using credentials did not work properly
8+
49
## Release 2.1.0
510

611
### New features

CSK_Module_MQTTClient/project.mf.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ Additionally you can set via 'setDisconnectWithWillMessage' if the WillMessage s
559559
</crown>
560560
</crown>
561561
<meta key="author">SICK AG</meta>
562-
<meta key="version">2.1.0</meta>
562+
<meta key="version">2.1.1</meta>
563563
<meta key="priority">low</meta>
564564
<meta key="copy-protected">false</meta>
565565
<meta key="read-protected">false</meta>

CSK_Module_MQTTClient/scripts/Communication/MQTTClient/MQTTClient_Controller.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,15 +379,15 @@ Script.serveFunction('CSK_MQTTClient.setUsername', setUsername)
379379

380380
local function setPassword(password)
381381
_G.logger:fine(nameOfModule .. ": Set password.")
382-
mqttClient_Model.parameters.passwords = Cipher.AES.encrypt(password, mqttClient_Model.key)
382+
mqttClient_Model.parameters.password = Cipher.AES.encrypt(password, mqttClient_Model.key)
383383
end
384384
Script.serveFunction('CSK_MQTTClient.setPassword', setPassword)
385385

386386
local function setUseCredentials(status)
387387
_G.logger:fine(nameOfModule .. ": Set usage of credentials to " .. tostring(status))
388388
mqttClient_Model.parameters.useCredentials = status
389389
if status then
390-
MQTTClient.setUserCredentials(mqttClient_Model.mqttClient, mqttClient_Model.parameters.username, Cipher.AES.decrypt(mqttClient_Model.parameters.passwords, mqttClient_Model.key))
390+
MQTTClient.setUserCredentials(mqttClient_Model.mqttClient, mqttClient_Model.parameters.username, Cipher.AES.decrypt(mqttClient_Model.parameters.password, mqttClient_Model.key))
391391
end
392392
end
393393
Script.serveFunction('CSK_MQTTClient.setUseCredentials', setUseCredentials)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Tested on
1818

1919
|Device|Firmware version|Module version|
2020
|--|--|--|
21+
|SIM800|V1.2.0|v2.1.1|
2122
|SIM1012|V2.4.2|v2.1.0|
2223
|SIM1012|V2.4.2|v2.0.0|
2324
|SIM1012|V2.4.1|v1.0.0|

docu/CSK_Module_MQTTClient.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<meta name="generator" content="Asciidoctor 2.0.12">
88
<meta name="author" content="SICK AG">
9-
<title>Documentation - CSK_Module_MQTTClient 2.1.0</title>
9+
<title>Documentation - CSK_Module_MQTTClient 2.1.1</title>
1010
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
1111
<style>
1212
/* Stylesheet for CodeRay to match GitHub theme | MIT License | http://foundation.zurb.com */
@@ -615,10 +615,10 @@
615615
</head>
616616
<body class="article toc2 toc-left">
617617
<div id="header">
618-
<h1>Documentation - CSK_Module_MQTTClient 2.1.0</h1>
618+
<h1>Documentation - CSK_Module_MQTTClient 2.1.1</h1>
619619
<div class="details">
620620
<span id="author" class="author">SICK AG</span><br>
621-
<span id="revnumber">version 2.1.0,</span>
621+
<span id="revnumber">version 2.1.1,</span>
622622
<span id="revdate">2025-04-11</span>
623623
</div>
624624
<div id="toc" class="toc2">
@@ -821,7 +821,7 @@ <h2 id="_document_metadata">Document metadata</h2>
821821
</tr>
822822
<tr>
823823
<th class="tableblock halign-left valign-top"><p class="tableblock">Version</p></th>
824-
<td class="tableblock halign-left valign-top"><p class="tableblock">2.1.0</p></td>
824+
<td class="tableblock halign-left valign-top"><p class="tableblock">2.1.1</p></td>
825825
</tr>
826826
<tr>
827827
<th class="tableblock halign-left valign-top"><p class="tableblock">Date</p></th>
@@ -6776,7 +6776,7 @@ <h3 id="API:Enum:CSK_MQTTClient.TLSVersion"><span class="api-enum">CSK_MQTTClien
67766776
</div>
67776777
<div id="footer">
67786778
<div id="footer-text">
6779-
Version 2.1.0<br>
6779+
Version 2.1.1<br>
67806780
Last updated 2025-04-11 09:05:41 +0200
67816781
</div>
67826782
</div>

0 commit comments

Comments
 (0)