ArmedDataloggingNetwork
ArmedDataloggingNetwork

Used to setup and start an Armed Datalogging network of wireless nodes.

ArmedDataloggingNetwork
ArmedDataloggingNetwork(
const BaseStation &networkBaseStation
)

Creates an ArmedDataloggingNetwork object used to setup and start an Armed Datalogging network.

Parameters
networkBaseStation

The master BaseStation for this network. All WirelessNodes that are added must have this as their parent BaseStation.

addNode
void addNode(
const WirelessNode &node,
const std::string &message ""
)

Adds a WirelessNode to the Armed Datalogging network. If the Node already exists in the network, it will not be added.  The Node's parent BaseStation should be the same as the network's master BaseStation.  The Node should have its sampling configuration set to Armed Datalogging mode prior to adding to be successfully added.

Parameters
node

The WirelessNode to add to the network.

message
const std::string&

A message to be set with the WirelessNode. This message can be retrieved when downloading the data from the Node. Will be trimmed to 50 chars if longer. (Default of "")

Exceptions
removeNode
void removeNode(
NodeAddress nodeAddress
)

Removes a WirelessNode from the Armed Datalogging network, if it exists in the network.

Parameters
nodeAddress

The node address of the WirelessNode to be removed.

startSampling
void startSampling()

Starts the network sampling by individually arming each Node and then broadcasting the trigger to all Nodes that are armed.

Exceptions