Skip to content

tedge-dot 0.0.21

Choose a tag to compare

@reubenmiller reubenmiller released this 17 Nov 06:39
e0829ea

Two interchangeable packages, one binary: tedge-dot-c (C, the default: small, a glibc 2.17
floor, every protocol including the PROFIBUS-DP preview) and tedge-dot-rs (Rust, for the few features
only it has). Whether both remain in the final product is not decided yet; configs and flows work
with either. Install one of them from the thin-edge.io community repository:

sudo apt-get install -y tedge-dot-c    # or tedge-dot-rs

Install & upgrade guide
· README
· Changelog
· SHA256SUMS covers every asset below.

Highlights

Grouped output: measurement type and fragments

A measurement now has a type (the topic te/device/<device>///m/<type> and the Cumulocity
type) and a fragment (the key in the body) next to its series, instead of one group
that set both. Series of several fragments with the same type and time go into one measurement,
so a connector can build a Cumulocity measurement such as:

{ "type": "c8y_CombinedSensorReading", "time": "…",
  "c8y_Environmental": { "temperature": { "value": 23.4, "unit": "°C" } },
  "c8y_Battery": { "level": { "value": 85, "unit": "%" } } }
[[device]]
name        = "sensor1"
measurement = { type = "c8y_CombinedSensorReading" }

  [[device.point]]
  id   = "t"
  meta = { measurement = { fragment = "c8y_Environmental", series = "temperature" } }

See doc/measurement-output.md.

  • type, fragment and series can be set on a point (meta.measurement), on a device (new
    measurement table) and on [connector] measurement. A fragment defaults to the type, and the
    type to the protocol id. The ot-measurement flow has the same type and fragment
    parameters and reads meta.measurement.type and .fragment.
  • The output modes and the grouping table have names that say what they do:
    output = "single" (default) and output = "group", and
    grouping = { by, window, every, aggregate }.
  • With Streaming Lake Ingestion, each fragment is a table and a separate write. The fragment
    layout is a storage decision: grouping fragments into one measurement reduces the measurements
    sent, not the lake writes.
  • The Cloud Fieldbus import writes meta.measurement = { type, fragment, series } from a device
    type's measurementMapping, with the same result as before.

Existing configurations keep working and publish the same topics and bodies. The old names
are deprecated and log a warning when the configuration loads:

Deprecated Use
output = "samples" output = "single"
output = "measurements" output = "group"
batch = { group_by = … } grouping = { by = … }
measurement.group, meta.measurement.group type (and fragment)

A table level that sets both batch and grouping is refused.

Action needed if you read the capability descriptor: outputs[] now reports
{ device, output, grouping } with output as "single" or "group" and grouping.by in
place of batch.group_by. A tool that reads outputs[].batch or compares outputs[].output
with "measurements" must read grouping and "group".

The OT Connector Contract is now version 0.5.0 (§5.5, outputs).


0.0.21 (2026-11-17)

Features

  • measurement type and fragments, single/group output, grouping table (#129) (7b27332)

Bug Fixes

  • c: write each log line in one call so parallel connectors no longer interleave (#127) (6e3fe61)
  • docs: keep site links when syncing repository pages (#125) (7454ece), closes #122