Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Samples/InstanceSubscribe.cpp (1 of 1 file). Show all
Unified · Split
| @@ -60,14 +60,17 @@ int main(int argc, char* argv[]) · 59 unmodified lines | ||
| 60 | 60 | |
| 61 | 61 | switch (i) |
| 62 | 62 | { |
| 63 | + case 0: | |
| 64 | + subscriber->SetFilterExpression("FILTER TOP 10 ActiveMeasurements WHERE SignalType = 'FREQ'"); | |
| 65 | + break; | |
| 63 | 66 | case 1: |
| 64 | − subscriber->SetFilterExpression("FILTER TOP 5 ActiveMeasurements WHERE SignalType = 'FREQ'"); | |
| 67 | + subscriber->SetFilterExpression("FILTER TOP 10 ActiveMeasurements WHERE SignalType LIKE '%PHA'"); | |
| 65 | 68 | break; |
| 66 | 69 | case 2: |
| 67 | − subscriber->SetFilterExpression("FILTER TOP 10 ActiveMeasurements WHERE SignalType LIKE '%PHA'"); | |
| 70 | + subscriber->SetFilterExpression("FILTER TOP 10 ActiveMeasurements WHERE SignalType LIKE '%PHM'"); | |
| 68 | 71 | break; |
| 69 | 72 | default: |
| 70 | − subscriber->SetFilterExpression("FILTER TOP 10 ActiveMeasurements WHERE SignalType LIKE '%PHM'"); | |
| 73 | + subscriber->SetFilterExpression(SubscriberInstance::SubscribeAllNoStatsExpression); | |
| 71 | 74 | break; |
| 72 | 75 | } |
| 73 | 76 | |