Upgrade guide from v2 to v3
This is an upgrade guide to upgrade your Homie devices from v2 to v3.
The Homie convention has been revised to v3 to be more extensible and introspectable. Be sure to check it out.
API changes in the sketch¶
- Constructor of
HomieNodeneeds third mandatory param
const char* type: E.g.
HomieNode lightNode("light", "Light");->
HomieNode lightNode("light", "Light", "switch");.
- Signature of handleInput has changed to:
handleInput(const HomieRange& range, const String& property, const String& value)TODO: see Ping example.