homieiot / homie-esp8266

💡 ESP8266 framework for Homie, a lightweight MQTT convention for the IoT
http://homieiot.github.io/homie-esp8266
MIT License
1.36k stars 308 forks source link

Get node property without intermediate variable #732

Closed Keiishu closed 2 years ago

Keiishu commented 2 years ago

Hi,

I can't seem to find a proper way to get the current value of a node's property. I would've thought there would be a HomieInternals::Property::getValue method, but there isn't, and I don't know what I should do except by updating an additional variable, which is quite redundant.

What's the best practice for this? And wouldn't it be nice to have this method?

Keiishu commented 2 years ago

Duplicate of #421. Sorry.