easybotics / node-red-contrib-easybotics-air-quality

3 stars 1 forks source link

only one sensor manager is supported per device #7

Closed frojnd closed 4 years ago

frojnd commented 4 years ago

Hi there.

I'm new to nodered. I hooked mh-z19 and installed your node. I also use dht22 sensor on raspberry pi and I thought this was the issue. So I unplugged it but the problem is the same. I looked through the code and found:

/* we use a global variable to check if more than one config node exists
* probably a bad idea and dumb 
*/ 
if(oneHandle)
        {
            this.error('only one sensor manager is supported per device')
            return
        }
oneHandle = true

But I don't understand the bigger picture... why it thinks I have more than one sensor managers? Is there a workaround? Thank you!

frojnd commented 4 years ago

Not an issue. It was raspberry pi 1 not proper enabling uart issue.