Giter VIP home page Giter VIP logo

Comments (8)

Yveaux avatar Yveaux commented on September 22, 2024

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.

kompio avatar kompio commented on September 22, 2024

I used tcp and I have the error for example : Illegal message length 'T90012500'

from node-red-contrib-opentherm.

Yveaux avatar Yveaux commented on September 22, 2024

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.

kompio avatar kompio commented on September 22, 2024

Yes, i think there is the problem .. i work on it.

from node-red-contrib-opentherm.

mikeS7 avatar mikeS7 commented on September 22, 2024

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.

kompio avatar kompio commented on September 22, 2024

from node-red-contrib-opentherm.

kompio avatar kompio commented on September 22, 2024

from node-red-contrib-opentherm.

Yveaux avatar Yveaux commented on September 22, 2024

Ok, great!
Closed this issue.

from node-red-contrib-opentherm.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.