-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User configurable usermods. #1951
User configurable usermods. #1951
Conversation
blazoncek
commented
May 7, 2021
- Utilizing addToConfig() & readFromConfig()
- UM configuration Settings page
- MQTT support for usermods
- A few sample usermods including rewritten Temparature and new Multi-Relay, enhanced Four Line Display, Auto Save and PIR sensor switch.
- Utilizing addToConfig() & readFromConfig() - UM configuration Settings page - MQTT support for usermods - A few sample usermods including rewritten Temparature and new Multi-Relay
A lot of great additions in this one! |
wled00/fcn_declare.h
Outdated
virtual uint16_t getId() {return USERMOD_ID_UNSPECIFIED;} | ||
}; | ||
|
||
class UsermodManager { | ||
class UsermodManager : public Usermod { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason you want UsermodManager
to be a child class of Usermod
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to get virtual functions propagate to UsermodManager (since I'm still not very good at OOP).
It has no added value and can be removed (to a previous no parent-child relationship).
I knew I'd screw up eventually. :) I am so pushing forward that I always have to edit a few things manually before creating a PR. I am happy that you managed to overcome my sloppiness. |
I have updated MQTT handling since payload is often not null terminated. |