Skip to content

Commit

Permalink
fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ekarak committed Mar 6, 2016
1 parent cc9fa34 commit 16c88b8
Showing 1 changed file with 50 additions and 50 deletions.
100 changes: 50 additions & 50 deletions src/openzwave-network.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,57 +21,57 @@ using namespace v8;
using namespace node;

namespace OZW {
/*
* Test network node. Sends a series of messages to a network node
* for testing network reliability.
*/
// ===================================================================
NAN_METHOD(OZW::TestNetworkNode)
// ===================================================================
{
Nan::HandleScope scope;
uint8 nodeid = info[0]->ToNumber()->Value();
uint8 nummsg = (info.Length() > 1) ? info[1]->ToNumber()->Value() : 1;
OpenZWave::Manager::Get()->TestNetworkNode(homeid, nodeid, nummsg);
}
/*
* Test network node. Sends a series of messages to a network node
* for testing network reliability.
*/
// ===================================================================
NAN_METHOD(OZW::TestNetworkNode)
// ===================================================================
{
Nan::HandleScope scope;
uint8 nodeid = info[0]->ToNumber()->Value();
uint8 nummsg = (info.Length() > 1) ? info[1]->ToNumber()->Value() : 1;
OpenZWave::Manager::Get()->TestNetworkNode(homeid, nodeid, nummsg);
}

/*
* Test network. Sends a series of messages to every node on the
* network for testing network reliability.
*/
// ===================================================================
NAN_METHOD(OZW::TestNetwork)
// ===================================================================
{
Nan::HandleScope scope;
uint8 nummsg = (info.Length() > 0) ? info[0]->ToNumber()->Value() : 1;
OpenZWave::Manager::Get()->HealNetwork(homeid, nummsg);
}
/*
* Test network. Sends a series of messages to every node on the
* network for testing network reliability.
*/
// ===================================================================
NAN_METHOD(OZW::TestNetwork)
// ===================================================================
{
Nan::HandleScope scope;
uint8 nummsg = (info.Length() > 0) ? info[0]->ToNumber()->Value() : 1;
OpenZWave::Manager::Get()->HealNetwork(homeid, nummsg);
}

/*
* Heal network node by requesting the node rediscover their neighbors.
*/
// ===================================================================
NAN_METHOD(OZW::HealNetworkNode)
// ===================================================================
{
Nan::HandleScope scope;
uint8 nodeid = info[0]->ToNumber()->Value();
uint8 doRR = info[1]->ToBoolean()->Value();
OpenZWave::Manager::Get()->HealNetworkNode(homeid, nodeid, doRR);
}
/*
* Heal network node by requesting the node rediscover their neighbors.
*/
// ===================================================================
NAN_METHOD(OZW::HealNetworkNode)
// ===================================================================
{
Nan::HandleScope scope;
uint8 nodeid = info[0]->ToNumber()->Value();
uint8 doRR = info[1]->ToBoolean()->Value();
OpenZWave::Manager::Get()->HealNetworkNode(homeid, nodeid, doRR);
}

/*
* Heal network by requesting node's rediscover their neighbors.
* Sends a ControllerCommand_RequestNodeNeighborUpdate to every node.
* Can take a while on larger networks.
*/
// ===================================================================
NAN_METHOD(OZW::HealNetwork)
// ===================================================================
{
Nan::HandleScope scope;
bool doRR = info[0]->ToBoolean()->Value();
OpenZWave::Manager::Get()->HealNetwork(homeid, doRR);
}
/*
* Heal network by requesting node's rediscover their neighbors.
* Sends a ControllerCommand_RequestNodeNeighborUpdate to every node.
* Can take a while on larger networks.
*/
// ===================================================================
NAN_METHOD(OZW::HealNetwork)
// ===================================================================
{
Nan::HandleScope scope;
bool doRR = info[0]->ToBoolean()->Value();
OpenZWave::Manager::Get()->HealNetwork(homeid, doRR);
}
}

0 comments on commit 16c88b8

Please sign in to comment.