pedalPusher68 / node-red-contrib-brads-i2c-nodes

A collection of node-red nodes for assorted i2c devices
MIT License
5 stars 7 forks source link

Error message... #7

Open gtuck opened 6 years ago

gtuck commented 6 years ago

I have the bmp180 connected to address 77 (the default) I can run a test python script on my raspberry pi and I get the expected output so I know the sensor is connected and working...

When I test the flow I get the following output: {"_msgid":"5e230f2c.c3965","topic":"","payload":" unrecognized command."}

Any ideas?

mtode commented 5 years ago

this library is missing a documentation. you get this error because the input message is not recognized by the library. you will need to inject a payload message like "measure" to the input of the module to get the sensor measurements! Simply add a function with the following code in front of the BMP180

msg.payload = 'measure'
return msg;