Skip to main content

Connections to TDEngine

From ESP32 via ESP-IDF

  • This is tested using ESP_HTTP_CLIENT library through the esp_http_client_example available in the docs.
  • This fails with the default stack size allocated for the main function and tasks. It has to be explicitly increased. 8192 bytes found to be a working value for this.

C# .NET connector

  1. Install TDEngine for Windows if not already done.

  2. Create a .net project and go into the project folder via command prompt.

  3. Install the TDEngine package

    dotnet add package TDengine.Connector
  4. Build code following examples:

    1. https://docs.tdengine.com/develop/connect/#install-connectors
    2. https://docs.taosdata.com/connector/csharp/

From taos CLI (locally installed TDEngine CLI)

The cloud URL and the token can be set as export TDENGINE_CLOUD_DSN=<URL>?token=<token>.

export TDENGINE_CLOUD_DSN=https://gw.us-east-1.aws.cloud.tdengine.com?token=eb75d3ce4fe27e9b4c37b56bce53c90cf604ef8e
taos