iobroker.modbus 5.0.4 → 5.0.5
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 +5 -0
- package/admin/asset-manifest.json +3 -3
- package/admin/index_m.html +1 -1
- package/admin/static/js/main.92002ca6.js +3 -0
- package/admin/static/js/{main.9ab56ea5.js.LICENSE.txt → main.92002ca6.js.LICENSE.txt} +43 -23
- package/admin/static/js/main.92002ca6.js.map +1 -0
- package/io-package.json +13 -13
- package/lib/master.js +80 -72
- package/lib/slave.js +27 -19
- package/package.json +1 -1
- package/admin/static/js/main.9ab56ea5.js +0 -3
- package/admin/static/js/main.9ab56ea5.js.map +0 -1
package/README.md
CHANGED
|
@@ -128,6 +128,8 @@ The Formula is executed by the eval() function. Therefore, all common functions
|
|
|
128
128
|
|
|
129
129
|
In the formula, "x" has to be used for the read value from Modbus. E.g. `x * Math.pow(10, sf['40065'])`
|
|
130
130
|
|
|
131
|
+
Using the "sf" array (see above example) you can access other read modbus values if they are flagged as "Scale Factor" in the config (see below infos on "SF" flag).
|
|
132
|
+
|
|
131
133
|
If the formula cannot be evaluated during runtime, then the Adapter writes a warning message to the log.
|
|
132
134
|
|
|
133
135
|
Another use case for formulas could also be to prevent implausible data with a formula like `x > 2000000 ? null : x`
|
|
@@ -276,6 +278,9 @@ There are some programs in folder *test' to test the TCP communication:
|
|
|
276
278
|
### **WORK IN PROGRESS**
|
|
277
279
|
-->
|
|
278
280
|
## Changelog
|
|
281
|
+
### 5.0.5 (2022-08-13)
|
|
282
|
+
* (Apollon77) Prevent some crash cases reported by Sentry
|
|
283
|
+
|
|
279
284
|
### 5.0.4 (2022-06-15)v
|
|
280
285
|
* (bluefox) Corrected the coils reading in slave mode
|
|
281
286
|
* (bluefox) Corrected type of connection indicator
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files": {
|
|
3
3
|
"main.css": "./static/css/main.96b3c861.css",
|
|
4
|
-
"main.js": "./static/js/main.
|
|
4
|
+
"main.js": "./static/js/main.92002ca6.js",
|
|
5
5
|
"index.html": "./index.html",
|
|
6
6
|
"main.96b3c861.css.map": "./static/css/main.96b3c861.css.map",
|
|
7
|
-
"main.
|
|
7
|
+
"main.92002ca6.js.map": "./static/js/main.92002ca6.js.map"
|
|
8
8
|
},
|
|
9
9
|
"entrypoints": [
|
|
10
10
|
"static/css/main.96b3c861.css",
|
|
11
|
-
"static/js/main.
|
|
11
|
+
"static/js/main.92002ca6.js"
|
|
12
12
|
]
|
|
13
13
|
}
|
package/admin/index_m.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="./manifest.json"/><script type="text/javascript" src="./../../lib/js/socket.io.js"></script><title>Modbus</title><script defer="defer" src="./static/js/main.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="shortcut icon" href="./favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta name="theme-color" content="#000000"/><link rel="manifest" href="./manifest.json"/><script type="text/javascript" src="./../../lib/js/socket.io.js"></script><title>Modbus</title><script defer="defer" src="./static/js/main.92002ca6.js"></script><link href="./static/css/main.96b3c861.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|