ArmedDataloggingNetwork
ArmedDataloggingNetwork

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

Functions
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.

Variables
m_networkBase
BaseStation m_networkBase

The BaseStation that will act as the parent base station for this network.

m_nodes
std::map<NodeAddress, std::string> m_nodes

A map of node addresses to messages to be set for datalogging. This serves as the list of nodes in the network.

Functions
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
armNodes
void armNodes()

Sends the ArmForDatalogging command to each Node in the network.

Exceptions
triggerArmedNodes
void triggerArmedNodes()

Sends a broadcast trigger to start all Nodes that are currently armed.

Exceptions