iobroker.lorawan 0.3.0 → 0.3.1
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/README.md +3 -0
- package/io-package.json +14 -14
- package/main.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,6 +22,9 @@ For now there is documentation in English here: http://www.hafenmeister.com/Lora
|
|
|
22
22
|
Placeholder for the next version (at the beginning of the line):
|
|
23
23
|
### **WORK IN PROGRESS**
|
|
24
24
|
-->
|
|
25
|
+
### 0.3.1 (2024-02-15)
|
|
26
|
+
* (BenAhrdt) rebuild with better messageing
|
|
27
|
+
|
|
25
28
|
### 0.3.0 (2024-02-15)
|
|
26
29
|
* (BenAhrdt) define user friendly Blockly Blocks with result
|
|
27
30
|
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lorawan",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.3.1": {
|
|
7
|
+
"en": "rebuild with better messageing",
|
|
8
|
+
"de": "neuaufbau mit besserer botschaft",
|
|
9
|
+
"ru": "перестроить с лучшим сообщением",
|
|
10
|
+
"pt": "reconstruir com melhor mensagem",
|
|
11
|
+
"nl": "herbouwen met betere berichtgeving",
|
|
12
|
+
"fr": "reconstruire avec un meilleur message",
|
|
13
|
+
"it": "ricostruire con messaggi migliori",
|
|
14
|
+
"es": "reconstruir con mejor mensaje",
|
|
15
|
+
"pl": "odbudowa dzięki lepszemu rozwiązywaniu problemów",
|
|
16
|
+
"uk": "перебудувати краще повідомлення",
|
|
17
|
+
"zh-cn": "以更好的信息重建"
|
|
18
|
+
},
|
|
6
19
|
"0.3.0": {
|
|
7
20
|
"en": "define user friendly Blockly Blocks with result",
|
|
8
21
|
"de": "benutzerfreundlich definieren Blockly Blocks mit Ergebnis",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "min / max wartości dla downlink- configs (liczba)",
|
|
81
94
|
"uk": "min / максимальні значення для налаштувань посилань (номер)",
|
|
82
95
|
"zh-cn": "下行链路配置最小值( 数)"
|
|
83
|
-
},
|
|
84
|
-
"0.1.10": {
|
|
85
|
-
"en": "default of crc changed",
|
|
86
|
-
"de": "standard von cc geändert",
|
|
87
|
-
"ru": "по умолчанию",
|
|
88
|
-
"pt": "padrão de crc alterado",
|
|
89
|
-
"nl": "default van crc gewijzigd",
|
|
90
|
-
"fr": "défaut de changement de crc",
|
|
91
|
-
"it": "default di crc cambiato",
|
|
92
|
-
"es": "por defecto de crc cambiado",
|
|
93
|
-
"pl": "domyślna zmiana crc",
|
|
94
|
-
"uk": "за замовчуванням змінного струму",
|
|
95
|
-
"zh-cn": "默认 crc 已更改"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"title": "LoRaWAN",
|
package/main.js
CHANGED
|
@@ -407,14 +407,14 @@ class Lorawan extends utils.Adapter {
|
|
|
407
407
|
if(obj.message.deviceEUI){
|
|
408
408
|
const changeInfo = await this.getChangeInfoFromDeviceEUI(obj.message.deviceEUI,`${this.messagehandler?.directoryhandler.reachableSubfolders.configuration}.devicetype`);
|
|
409
409
|
if(changeInfo){
|
|
410
|
-
result = {applicationId: changeInfo.applicationId, deviceEUI: changeInfo.deviceEUI, deviceId: changeInfo.deviceId, deviceType: changeInfo.deviceType};
|
|
410
|
+
result = {applicationId: changeInfo.applicationId, deviceEUI: changeInfo.deviceEUI, deviceId: changeInfo.deviceId, deviceType: changeInfo.deviceType, recieved:obj.message};
|
|
411
411
|
}
|
|
412
412
|
else{
|
|
413
|
-
result = {error:true, message:"No device found"};
|
|
413
|
+
result = {error:true, message:"No device found", recieved:obj.message};
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
else{
|
|
417
|
-
result = {error:true, message:"No deviceEUI found"};
|
|
417
|
+
result = {error:true, message:"No deviceEUI found", recieved:obj.message};
|
|
418
418
|
}
|
|
419
419
|
// Send response
|
|
420
420
|
if (obj.callback) this.sendTo(obj.from, obj.command, result, obj.callback);
|
|
@@ -460,7 +460,7 @@ class Lorawan extends utils.Adapter {
|
|
|
460
460
|
// Check limit
|
|
461
461
|
if((!downlinkObject.common.min || obj.message.value >= downlinkObject.common.min) && (!downlinkObject.common.max || obj.message.value <= downlinkObject.common.max)){
|
|
462
462
|
await this.setStateAsync(downlinkId,obj.message.value);
|
|
463
|
-
result = {applicationId: changeInfo.applicationId, deviceEUI: changeInfo.deviceEUI, deviceId: changeInfo.deviceId, deviceType: changeInfo.deviceType,downlink: obj.message.downlink, value: obj.message.value, recieved:obj.message};
|
|
463
|
+
result = {applicationId: changeInfo.applicationId, deviceEUI: changeInfo.deviceEUI, deviceId: changeInfo.deviceId, deviceType: changeInfo.deviceType, downlink: obj.message.downlink, value: obj.message.value, recieved:obj.message};
|
|
464
464
|
}
|
|
465
465
|
else{
|
|
466
466
|
result = {error:true, message:"value is not in valid range", recieved:obj.message};
|