Harsch-Systems / node-red-contrib-pi-plates

Control Pi-Plates from Node-RED
Apache License 2.0
6 stars 7 forks source link

Set thermocouple type (K or J) on Thermo Plate inputs #33

Closed j1303 closed 1 year ago

j1303 commented 1 year ago

There is a setTYPE function available for the Thermo Plate that allows you to switch between a type K and type J thermocouple. Would it be possible for you to add this functionality to your node?

According to the documentation:

setTYPE(addr,channel,type) – sets the thermocouple type for a specific channel. Since this only applies to thermocouple inputs, an error message will be generated if the channel argument is not between 1 and 8.

type: the THERMOplate can measure temperature using both K type and J type thermocouples. Valid arguments are ‘k’ and ‘j’. Be sure and include the quotation marks.

mharsch commented 1 year ago

Thank you for pointing this out. I've added the type setting feature for THERMO nodes (TC1-8) in d0678fbe4d3ed7da7b2396df68b784ea9177d638 and published to npm in version 0.2.3.

j1303 commented 1 year ago

I just updated to the new version and it works great, thank you!