Install the library¶
tdslite is header-only: installing it means making its src folder available
to your compiler. Pick your build system.
From the Library Manager:
- Open Tools → Manage Libraries...
- Search for
tdsliteand click Install.
From a release zip, e.g. for a version that isn't in the Library Manager yet:
- Download
tdslite-<version>.zipfrom the releases page. - Open Sketch → Include Library → Add .ZIP Library... and select the file.
Then include the library in your sketch:
Add tdslite to lib_deps in platformio.ini:
or install it from the command line:
Then include the library:
See the registry page for the available versions.
Add the component from the ESP Component Registry:
ESP-IDF 5.0 or newer is required. Include the backend you use:
Get the source, e.g. as a git submodule:
and add its src folder to your target's include path:
target_include_directories(my_app PRIVATE third_party/tdslite/src)
target_compile_features(my_app PRIVATE cxx_std_11)
Include the backend you use:
The BSD sockets backend is header-only too. The Boost.ASIO backends
(tdslite.net.asio, tdslite.net.asio.tls) are compiled libraries built
by tdslite's own CMake project; see
the contributing guide
for building it.
Check the installation¶
Compile a program that creates a driver. If it builds, tdslite is installed:
Related¶
- Network backends: which header and driver type to use on each platform.
- Tested hardware