Team Viewer tvcmiclient SDK
===========================

tvcmiclient is a SDK implemented in C for the Team Viewer Agent API version 1.0.

## Links

See the following link for more information on Team Viewer Agent API:
https://docs-iot.teamviewer.com/mqtt-api/

## Files

- "docs" - contains doxygen-generated HTML documents.
- "examples" - contains C-SDK examples.
- "include" - contains the tvcmi_client.h SDK interface file.
- "libs" - contains static and shared client libraries.
- "3rdpartylibs" - contains third party static libraries (c-ares, json-c, mosquitto, openssl).
- "copyright.txt" - contains licensing information.
- "3rdpartylicenses.txt" - contains licensing information of third party libraries.
- "readme.txt" - contains general information about the SDK package structure.
- "version.txt" - contains the version number of the SDK.
- "connector.conf" - contains the coonector configuration.

## 3-rd party libraries

- c-ares version 1.16.1
- json-c version 0.15.99
- mosquitto version 2.0.18
- openssl version 3.3.2

## To build examples navigate to "examples" directory and run the following commands
# with the STATIC tvcmiclient library
cmake  -S . -B ./build/static -DBUILD_SHARED_LIBS=OFF
cmake --build ./build/static --config Release

# to install built examples in ./bin/static
cmake --install ./build/static

# To run any example
cd ./bin/static

# with the SHARED tvcmiclient library
cmake  -S . -B ./build/shared -DBUILD_SHARED_LIBS=ON
cmake --build ./build/shared --config Release

# to install built examples in ./bin/shared
cmake --install ./build/shared

# to run any example
cd ./bin/shared
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:../../../3rdpartylibs:../../../libs
