//Function: getCurrentConfig // This function demonstrates how to obtain the current configuration // settings of a Wireless Node with MSCL. // // Note: More settings are available than are demoed here. // Reference the documentation for the full list of functions. static void getCurrentConfig(ref mscl.WirelessNode node) { Console.WriteLine("Current Configuration Settings"); //read some of the current node configuration settings Console.WriteLine("# of Triggers: " + node.getNumDatalogSessions()); Console.WriteLine("User Inactivity Timeout: " + node.getInactivityTimeout() + " seconds"); Console.WriteLine("Total active channels: " + node.getActiveChannels().count()); Console.WriteLine("# of sweeps: " + node.getNumSweeps()); //get a list of the supported channels mscl.WirelessChannels supportedChannels = node.channels(); //loop through all of the channels foreach(var channel in supportedChannels) { //print out some information about the channels Console.WriteLine("Channel #: " + channel.Key); Console.WriteLine("Slope: " + channel.Value.getLinearEquation().slope()); Console.WriteLine("Offset: " + channel.Value.getLinearEquation().offset()); } }