Upgrade guide from v2 to v3
This is an upgrade guide to upgrade your Homie devices from v2 to v3.
New convention¶
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
HomieNode
needs third mandatory paramconst 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. - TODO