C++ SDK (Lightweight Wrapper)

Header-only RAII wrapper over the C ABI (tijet_core.h).

Usage

#include "tijet_core.h"  // C ABI header

// Header-only RAII wrapper provided by sdk/cpp/include/tijet_core.h
// Or call C API directly:
auto *cli = tijet_client_create();
tijet_client_connect(cli, nullptr);
tijet_client_set_parameter(cli, "key", "value");
tijet_client_destroy(cli);

Qt Integration

bool MyWidget::connectToDevice() {
    handle_ = tijet_client_create();
    QByteArray addr = ui->addressEdit->text().toUtf8();
    return tijet_client_connect(handle_, addr.constData()) == TIJET_OK;
}

Note: For the complete C++ reference, see the Chinese documentation.