iobroker.modbus 5.0.3 → 5.0.4
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 -1
- package/admin/asset-manifest.json +6 -6
- package/admin/index_m.html +1 -1
- package/admin/static/css/main.96b3c861.css +2 -0
- package/admin/static/css/main.96b3c861.css.map +1 -0
- package/admin/static/js/main.9ab56ea5.js +3 -0
- package/admin/static/js/{main.40825b5f.js.LICENSE.txt → main.9ab56ea5.js.LICENSE.txt} +1 -1
- package/admin/static/js/main.9ab56ea5.js.map +1 -0
- package/io-package.json +13 -1
- package/lib/jsmodbus/handler/server/ReadCoils.js +1 -2
- package/lib/jsmodbus/handler/server/ReadDiscreteInputs.js +1 -3
- package/lib/slave.js +4 -4
- package/main.js +8 -5
- package/package.json +3 -3
- package/admin/static/css/main.fb1757a1.css +0 -2
- package/admin/static/css/main.fb1757a1.css.map +0 -1
- package/admin/static/js/main.40825b5f.js +0 -3
- package/admin/static/js/main.40825b5f.js.map +0 -1
package/README.md
CHANGED
|
@@ -123,7 +123,7 @@ This factor is used to multiply the read value from Bus for static scaling. So t
|
|
|
123
123
|
This offset is added to the read value after above multiplication. So the calculation looks like following val = x * Factor + Offset
|
|
124
124
|
|
|
125
125
|
### Formula
|
|
126
|
-
This field can be used for advanced calculations if Factor and Offset is not sufficient. If this field is set, then the Factor and Offset field is ignored
|
|
126
|
+
This field can be used for advanced calculations if Factor and Offset is not sufficient. **If this field is set, then the Factor and Offset field is ignored.**
|
|
127
127
|
The Formula is executed by the eval() function. Therefore, all common functions are supported. Especially the Math functions. The formula must comply with Javascript syntax, therefore also take care about upper and lower cases.
|
|
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'])`
|
|
@@ -276,6 +276,10 @@ There are some programs in folder *test' to test the TCP communication:
|
|
|
276
276
|
### **WORK IN PROGRESS**
|
|
277
277
|
-->
|
|
278
278
|
## Changelog
|
|
279
|
+
### 5.0.4 (2022-06-15)v
|
|
280
|
+
* (bluefox) Corrected the coils reading in slave mode
|
|
281
|
+
* (bluefox) Corrected type of connection indicator
|
|
282
|
+
|
|
279
283
|
### 5.0.3 (2022-05-13)
|
|
280
284
|
* (bluefox) Fixed error with mutli-devices
|
|
281
285
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files": {
|
|
3
|
-
"main.css": "./static/css/main.
|
|
4
|
-
"main.js": "./static/js/main.
|
|
3
|
+
"main.css": "./static/css/main.96b3c861.css",
|
|
4
|
+
"main.js": "./static/js/main.9ab56ea5.js",
|
|
5
5
|
"index.html": "./index.html",
|
|
6
|
-
"main.
|
|
7
|
-
"main.
|
|
6
|
+
"main.96b3c861.css.map": "./static/css/main.96b3c861.css.map",
|
|
7
|
+
"main.9ab56ea5.js.map": "./static/js/main.9ab56ea5.js.map"
|
|
8
8
|
},
|
|
9
9
|
"entrypoints": [
|
|
10
|
-
"static/css/main.
|
|
11
|
-
"static/js/main.
|
|
10
|
+
"static/css/main.96b3c861.css",
|
|
11
|
+
"static/js/main.9ab56ea5.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.9ab56ea5.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>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
body,html{height:100%}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;margin:0;overflow:hidden;padding:0;width:100%}::-webkit-scrollbar,::-webkit-scrollbar-track{background-color:#ccc}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-thumb{background-color:#575757}#root,.App{height:100%}
|
|
2
|
+
/*# sourceMappingURL=main.96b3c861.css.map*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/css/main.96b3c861.css","mappings":"AAGA,UAFE,WAWF,CATA,KAIE,kCAAmC,CACnC,iCAAkC,CAFlC,mIAA8J,CAF9J,QAAS,CAOT,eAAgB,CANhB,SAAU,CAIV,UAGF,CAKA,8CAFE,qBAKF,CAHA,oBACE,SAEF,CACA,0BACE,wBACF,CAMA,WACE,WACF","sources":["index.css"],"sourcesContent":["html {\n height: 100%;\n}\nbody {\n margin: 0;\n padding: 0;\n font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n/* scrollbar */\n*::-webkit-scrollbar-track {\n background-color: #ccc;\n}\n*::-webkit-scrollbar {\n width: 6px;\n background-color: #ccc;\n}\n*::-webkit-scrollbar-thumb {\n background-color: #575757;\n}\n\n\n#root {\n height: 100%;\n}\n.App {\n height: 100%;\n}"],"names":[],"sourceRoot":""}
|