Used to setup and start an Armed Datalogging network of wireless nodes.
ArmedDataloggingNetwork( |
| ) |
Creates an ArmedDataloggingNetwork object used to setup and start an Armed Datalogging network.
networkBaseStation const BaseStation& | The master BaseStation for this network. All WirelessNodes that are added must have this as their parent BaseStation. |
The BaseStation that will act as the parent base station for this network.
A map of node addresses to messages to be set for datalogging. This serves as the list of nodes in the network.
void addNode( |
| ) |
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.
node const WirelessNode& | 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 "") |
Error: The Node's parent BaseStation is different than the network's master BaseStation.
Error_InvalidNodeConfig: The configuration is not set for Armed Datalogging mode.
Error_NodeCommunication: Failed to communicate with the Node.
Error_Connection: A connection error has occurred with the parent BaseStation.
void removeNode( |
| ) |
Removes a WirelessNode from the Armed Datalogging network, if it exists in the network.
nodeAddress | The node address of the WirelessNode to be removed. |
Starts the network sampling by individually arming each Node and then broadcasting the trigger to all Nodes that are armed.
Error_NodeCommunication: Failed to start a Node Synchronized Sampling.
Error_Connection: A connection error has occurred.
Sends the ArmForDatalogging command to each Node in the network.
Error_NodeCommunication: Failed to send the ArmForDatalogging command to a Node.
Error_Connection: A connection error has occurred.
Sends a broadcast trigger to start all Nodes that are currently armed.
Error_Connection: A connection error has occurred.