Build and Test Custom C/C++ Adapter for Freezer Monitoring Lite
- Step 1
Now we need to compile and build our Custom
C/C++Adapter into an executable. To do this, open up
PuTTYand navigate to your
Run the command
maketo build the
.cppfile. This should generate an executable called
- Step 2
We will now test out our Custom
First, start up the freezer monitoring lite program in
$STREAMING_HOME/bin/streamingproject --ccx $HOME/freezer_monitoring_lite.ccx --command-port 9230
PuTTYwindow, navigate to the
custom_c_adapterfolder and run our Custom
If successful, you will begin to see “Messages published successfully” on the screen.
Finally, we will subscribe to the input stream inside our running project. The
streamingsubscribeexecutable comes with the installation of Streaming Lite, and is used to view the contents of any stream in a running project. Open up another
PuTTYwindow, and use it by running the following command. Make sure to replace
<host>with your Fully Qualified Domain Name
$STREAMING_HOME/bin/streamingsubscribe -s isFreezerTemperatureReading -p <host>:9230/freezer_monitoring_lite
If successful, you should be able to see the rows our Custom
C/C++Adapter is sending into the project.
For the question below, select the correct answer, and click Validate.
True or False: custom_c_adapter should be executed before running the streamingsubscribe executable to be able to see the rows our custom adapter is sending.