Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Samples/AverageFrequencyCalculator.cpp (1 of 6 files). Show all
Unified · Split
| @@ -97,6 +97,7 @@ void RunSubscriber(string hostname, uint16_t port) · 96 unmodified lines | |||
| 97 | // Register callbacks | 97 | // Register callbacks |
| 98 | Subscriber.RegisterStatusMessageCallback(&DisplayStatusMessage); | 98 | Subscriber.RegisterStatusMessageCallback(&DisplayStatusMessage); |
| 99 | Subscriber.RegisterErrorMessageCallback(&DisplayErrorMessage); | 99 | Subscriber.RegisterErrorMessageCallback(&DisplayErrorMessage); |
| 100 | Subscriber.RegisterNewMeasurementsCallback(&ProcessMeasurements); | ||
| 100 | 101 | ||
| 101 | cout << endl << "Connecting to " << hostname << ":" << port << "..." << endl << endl; | 102 | cout << endl << "Connecting to " << hostname << ":" << port << "..." << endl << endl; |
| 102 | 103 | ||
| @@ -119,7 +120,6 @@ SubscriptionInfo CreateSubscriptionInfo() · 16 unmodified lines | |||
| 119 | SubscriptionInfo info; | 120 | SubscriptionInfo info; |
| 120 | 121 | ||
| 121 | info.FilterExpression = "FILTER ActiveMeasurements WHERE SignalType = 'FREQ'"; | 122 | info.FilterExpression = "FILTER ActiveMeasurements WHERE SignalType = 'FREQ'"; |
| 122 | info.NewMeasurementsCallback = &ProcessMeasurements; | ||
| 123 | 123 | ||
| 124 | // Uncomment to enable optional UDP data channel | 124 | // Uncomment to enable optional UDP data channel |
| 125 | //info.UdpDataChannel = true; | 125 | //info.UdpDataChannel = true; |