I have a case where I use multiple dhtxx's and ds18b20's. I want to have one subflow to process the data that I get and store both location and the sensor type. Currently this node only passes back the sensor model or the node name. I'd like to see the name (as location), topic and sensor model.
RFE: pass the node name (as msg.location), the node topic (as msg.topic) and the sensor model (as msg.sensorid). This can be done by editing and changing line 86 from:
msg.topic = node.topic || node.name;
to:
msg.location = node.name;
msg.topic = node.topic;
msg.sensorid = 'dht' + node.dht;
I have a case where I use multiple dhtxx's and ds18b20's. I want to have one subflow to process the data that I get and store both location and the sensor type. Currently this node only passes back the sensor model or the node name. I'd like to see the name (as location), topic and sensor model.
RFE: pass the node name (as msg.location), the node topic (as msg.topic) and the sensor model (as msg.sensorid). This can be done by editing and changing line 86 from: msg.topic = node.topic || node.name; to: msg.location = node.name; msg.topic = node.topic; msg.sensorid = 'dht' + node.dht;