Skip to content
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

Issue:291 add device metadata #336

Merged
merged 3 commits into from
Nov 5, 2019
Merged

Issue:291 add device metadata #336

merged 3 commits into from
Nov 5, 2019

Conversation

mlankamp
Copy link
Contributor

I've added the getMetaData and getChangeLog functionality. c++ is not my strong point, so don't know if the following:
OpenZWave::Node::MetaDataFields metadata = static_cast<OpenZWave::Node::MetaDataFields>(Nan::To<int>(info[1]).ToChecked());

is the correct way to cast and int to enum.

@ekarak
Copy link
Member

ekarak commented Aug 19, 2019

Looks good to me. As for the static cast, I think we just need proper boundary checks (ie test if the integer supplied is within the MetaDataFields enum)

@robertsLando
Copy link
Member

@ekarak Could this be merged?

@robertsLando robertsLando merged commit 28ce86a into OpenZWave:master Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants