History

TimeSeriesPlatformLibrary: General code cleanup.

J. Ritchie Carroll committed 8 years ago

Commit c7965711 parent c7c65c46 files · +33 −28Browse files

Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Samples/AdvancedSubscribe.cpp (1 of 6 files). Show all

Unified · Split

Source/Libraries/TimeSeriesPlatformLibrary/Samples/AdvancedSubscribe.cpp+1−1
@@ -105,6 +105,7 @@ void RunSubscriber(string hostname, uint16_t port) · 104 unmodified lines
105105 // Register callbacks
106106 Subscriber.RegisterStatusMessageCallback(&DisplayStatusMessage);
107107 Subscriber.RegisterErrorMessageCallback(&DisplayErrorMessage);
108+ Subscriber.RegisterNewMeasurementsCallback(&ProcessMeasurements);
108109
109110 cout << endl << "Connecting to " << hostname << ":" << port << "..." << endl << endl;
110111
@@ -141,7 +142,6 @@ SubscriptionInfo CreateSubscriptionInfo() · 30 unmodified lines
141142 //info.FilterExpression = "FILTER ActiveMeasurements WHERE Device = 'SHELBY' AND SignalType = 'FREQ'";
142143
143144 info.FilterExpression = "PPA:1;PPA:2;PPA:3;PPA:4;PPA:5;PPA:6;PPA:7;PPA:8;PPA:9;PPA:10;PPA:11;PPA:12;PPA:13;PPA:14";
144− info.NewMeasurementsCallback = &ProcessMeasurements;
145145
146146 // To set up a remotely synchronized subscription, set this flag
147147 // to true and add the framesPerSecond parameter to the

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t