timpur / homie-esp8266-nodes

Nodes for Homie devices
MIT License
4 stars 2 forks source link

Added Unit Declaration #1

Open nerdfirefighter opened 6 years ago

nerdfirefighter commented 6 years ago

Added the declaring of "unit" in the constructor. Added setUnit, can only be called before the onReadyToOperate. There may be times when you want to change it after the sensor is ready to operator. But for now, once node is ready, its set. Have not tested the code. Good work Tim