Showing the changes to Source/Libraries/TimeSeriesPlatformLibrary/Samples/AdvancedSubscribe.cpp (1 of 13 files). Show all
Unified · Split
| @@ -109,10 +109,10 @@ void RunSubscriber(string hostname, uint16_t port) · 108 unmodified lines | ||
| 109 | 109 | cout << endl << "Connecting to " << hostname << ":" << port << "..." << endl << endl; |
| 110 | 110 | |
| 111 | 111 | // Connect and subscribe to publisher |
| 112 | − if (connector.Connect(Subscriber)) | |
| 112 | + if (connector.Connect(Subscriber, Info)) | |
| 113 | 113 | { |
| 114 | 114 | cout << "Connected! Subscribing to data..." << endl << endl; |
| 115 | − Subscriber.Subscribe(Info); | |
| 115 | + Subscriber.Subscribe(); | |
| 116 | 116 | } |
| 117 | 117 | else |
| 118 | 118 | { |