Overview
A client-mode connector for the TDengine REST API served by taosAdapter (default port6041). It streams MQTT telemetry into TDengine and runs SQL from MQTT:
Default
BASE_ADDRESS is http://YOUR_TDENGINE_HOST:6041. Replace YOUR_DATABASE in the endpoints with your database name; the database must already exist (create it once with CREATE DATABASE IF NOT EXISTS … through the SQL event). Topics use data/tdengine/<object>/<verb>.
Auth
taosAdapter uses HTTP Basic authentication. The connector setsWITH USERNAME and WITH PASSWORD GET SECRET "TDENGINE_PASSWORD", so store the database password as a Hub secret and never commit it. TDengine also accepts Authorization: Taosd <token> (token from GET /rest/login/<user>/<password>) and, on TDengine Cloud, a ?token= query parameter. Change the default root / taosdata credentials on any real deployment.
Basic Syntax
Example MQTT payloads
Create a super table and insert a row (topicdata/tdengine/sql/exec). The payload is raw SQL text:
data/tdengine/influx/write):
data/tdengine/opentsdb/write):
data/tdengine/query/rows):
{"code":0,"column_meta":[…],"data":[{"site":"porto","temperature":21.5}],"rows":1}.
Testing
The factory smoke ran against a local TDengine OSS 3.3.8.4 (taosd plus taosAdapter): GET /-/ping returned 200, CREATE STABLE and INSERT through /rest/sql/coreflux returned 200 with code 0, InfluxDB line and OpenTSDB JSON writes returned 204, and all three rows came back through /rest/sql/coreflux?row_with_meta=true (200, code 0).

