You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I looked at doing this, but it's hard to do programmatically due to the flagname parameter. For this specific example, you could split on / and title-case the first match, but there are some command classes where avoiding naming conflicts will be difficult (see https://github.com/gozwave/gozw/blob/master/gen/data/zwave-defs.xml#L8468).
My original intention was for gozw to act as a library that specifically understood zwave, and to create an additional library that was focused on abstracting these types of application-level concerns without requiring much specific knowledge of zwave. I never got around to figuring out how that fits in with everything else, so it's probably worth discussing.
Command classes have define parameter values for commands. Rather than defining them with generic types, such as
byte
, create a enum type.The switch binary command class for example:
It currently generates:
It should generate something like:
The text was updated successfully, but these errors were encountered: