File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/dds.net-connector-cpp.app Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ using namespace dds::net::connector;
1111
1212
1313void wait_for_exit_key ();
14- void my_double_consumer (std::string& variableName, double variableValue);
14+ void circle_values_consumer (std::string& variableName, double variableValue);
1515
1616
1717int main ()
@@ -31,8 +31,8 @@ int main()
3131 serverIP, serverPort,
3232 new ConsoleLogger ());
3333
34- connector.registerDoubleConsumer (" TESTX " , my_double_consumer , ON_CHANGE);
35- connector.registerDoubleConsumer (" TESTY " , my_double_consumer , ON_CHANGE);
34+ connector.registerDoubleConsumer (" Circle-X " , circle_values_consumer , ON_CHANGE);
35+ connector.registerDoubleConsumer (" Circle-Y " , circle_values_consumer , ON_CHANGE);
3636
3737 connector.start ();
3838
@@ -58,13 +58,13 @@ void wait_for_exit_key()
5858
5959static double x, y;
6060
61- void my_double_consumer (std::string& variableName, double variableValue)
61+ void circle_values_consumer (std::string& variableName, double variableValue)
6262{
63- if (variableName == " TESTX " )
63+ if (variableName == " Circle-X " )
6464 {
6565 x = variableValue;
6666 }
67- else if (variableName == " TESTY " )
67+ else if (variableName == " Circle-Y " )
6868 {
6969 y = variableValue;
7070
You can’t perform that action at this time.
0 commit comments