david-kasparov / node-red-contrib-pcf8574-cluster

3 stars 2 forks source link

Example shows 32 but should be 50 #3

Open fah opened 6 years ago

fah commented 6 years ago

The examples inside node-red and in the Readme.md do not work with my PCF8574. The error message I get is strange: Cannot read property 'addresses' of null.

Solution: After a lot of debugging I changed to number to base 10 - and voila it works now.

For others here are some examples: base16 -> base10 32 -> 50 38 -> 56

Also the error message is simply totally misleading. Is there a way to verify the address of the device first and shows the mistake?

David, thank you for this great plugin! Appreciate it a lot.

fah commented 6 years ago

Example: { index: 1, pin: 25 } does not work. The quotation marks are missing: { "interrupts": [ {"index": 1, "pin": 25} ] } is correct.