---
parser: v2
auto_validation: true
author_name: Robert Waywell
author_profile: https://github.com/RobWaywellSAP
primary_tag: products>sap-hana-streaming-analytics
tags: [  tutorial>intermediate, topic>internet-of-things, products>sap-hana-streaming-analytics, products>sap-hana\,-express-edition ]
time: 15
slug: hsa-lite-custom-c-adapter-part3
canonical_url: https://developers.sap.com/tutorials/hsa-lite-custom-c-adapter-part3
---

# Build and Test Custom C/C++ Adapter for Freezer Monitoring Lite
<!-- description --> Learn how to compile, and build our custom C/C++ Adapter into an executable using the given Makefile. Then, test your Custom Adapter by using streamingsubscribe executable that comes with the installation of Streaming Lite.

## Prerequisites  
 - **Tutorial:** [Code Custom C/C++ Adapter for Freezer Monitoring Lite](https://developers.sap.com/tutorials/hsa-lite-custom-c-adapter-part2.html)

---

### Build the Adapter Code


Now we need to compile and build our Custom `C/C++` Adapter into an executable. To do this, open up `PuTTY` and navigate to your `"custom_c_adapter"` folder.

Run the command `make` to build the `.cpp` file. This should generate an executable called `custom_c_adapter`.

![Build Custom C Adapter](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/hsa-lite-custom-c-adapter-part3/buildCustomCAdapter.png)


### See Results


We will now test out our Custom `C/C++` Adapter.

First, start up the freezer monitoring lite program in `PuTTY` by running:

```Bash

$STREAMING_HOME/bin/streamingproject --ccx $HOME/freezer_monitoring_lite.ccx --command-port 9230
```

In another `PuTTY` window, navigate to the `custom_c_adapter` folder and run our Custom `C/C++` Adapter:

```Bash

./custom_c_adapter
```

![Run Custom C Adapter](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/hsa-lite-custom-c-adapter-part3/runCustomCAdapter.png)

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 `streamingsubscribe` executable comes with the installation of Streaming Lite, and is used to view the contents of any stream in a running project. Open up another `PuTTY` window, and use it by running the following command. Make sure to replace `<host>` with your Fully Qualified Domain Name `(FQDN)`:

```Bash

$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.

![See Rows Custom C Adapter](https://raw.githubusercontent.com/sap-tutorials/Tutorials/master/tutorials/hsa-lite-custom-c-adapter-part3/seeRowsCustomCAdapter.png)

For the question below, select the correct answer, and click **Validate**.



---
