Comments (8)
It should work for any transport, so also for tcp connections.
The nodes just dissect otgw messages, you have to supply them.
from node-red-contrib-opentherm.
I used tcp and I have the error for example : Illegal message length 'T90012500'
from node-red-contrib-opentherm.
The check fails when supplied otgw message has a length unequal to 9 (ref https://github.com/Yveaux/node-red-contrib-opentherm/blob/master/otgwdec.js#L21)
The error message suggests length is 9, but could there be a non-printable character in the string or something? (eg newline)
from node-red-contrib-opentherm.
Yes, i think there is the problem .. i work on it.
from node-red-contrib-opentherm.
As temporary workaround you can use the following code:
[{"id":"b11399f4.f38f6","type":"switch","z":"2b03e62a.441eea","name":"","property":"payload","propertyType":"msg","rules":[{"t":"regex","v":"^([TBRA][0-9A-F]{8})$","vt":"str","case":false},{"t":"else"}],"checkall":"true","outputs":2,"x":450,"y":520,"wires":[["eea08ba.95ae878"],["346dbba.695b144"]],"outputLabels":["messages","responses"]},{"id":"dabc1aa3.7b3198","type":"change","z":"2b03e62a.441eea","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"^(.*)?\\s$","fromt":"re","to":"$1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":240,"y":520,"wires":[["b11399f4.f38f6"]]}]
and use messages output
from node-red-contrib-opentherm.
from node-red-contrib-opentherm.
from node-red-contrib-opentherm.
Ok, great!
Closed this issue.
from node-red-contrib-opentherm.
Related Issues (3)
- write back HOT 2
- Illegal message length HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-contrib-opentherm.