Skip to content

Commit

Permalink
Merge pull request #119 from yybd/master
Browse files Browse the repository at this point in the history
Add support function WriteConfig (sava settings)
  • Loading branch information
ekarak authored Sep 16, 2016
2 parents cd20793 + 53a2789 commit ecb8dfc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/openzwave-management.cc
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ namespace OZW {
));
}



#else

/* ------------------------------------
Expand Down Expand Up @@ -339,4 +341,13 @@ namespace OZW {
OpenZWave::Manager::Get()->CancelControllerCommand (homeid);
}

// =================================================================
NAN_METHOD(OZW::WriteConfig)
// =================================================================
{
Nan::HandleScope scope;
OpenZWave::Manager::Get()->WriteConfig(homeid);
}


}
1 change: 1 addition & 0 deletions src/openzwave.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ namespace OZW {
Nan::SetPrototypeMethod(t, "beginControllerCommand", OZW::BeginControllerCommand);
#endif
Nan::SetPrototypeMethod(t, "cancelControllerCommand", OZW::CancelControllerCommand);
Nan::SetPrototypeMethod(t, "writeConfig", OZW::WriteConfig);
// openzwave-network.cc
Nan::SetPrototypeMethod(t, "testNetworkNode", OZW::TestNetworkNode);
Nan::SetPrototypeMethod(t, "testNetwork", OZW::TestNetwork);
Expand Down
1 change: 1 addition & 0 deletions src/openzwave.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ namespace OZW {
static NAN_METHOD(BeginControllerCommand);
#endif
static NAN_METHOD(CancelControllerCommand);
static NAN_METHOD(WriteConfig);
// openzwave-network.cc
static NAN_METHOD(TestNetworkNode);
static NAN_METHOD(TestNetwork);
Expand Down

0 comments on commit ecb8dfc

Please sign in to comment.