Skip to content

Measurement with unit - C8y mapper #3243

@DevAZK

Description

@DevAZK

Describe the bug
Sending measurements with units does not work correctly for Cumulocity. The measurement is transmitted and displayed in Cumulocity, but the units do not appear on the graph.

To Reproduce

  1. Simply create a device and set the unit of e.g. temperature.
tedge mqtt pub -r 'te/device/test///m/environment/meta' '{
  "units": {
    "tavg": "°C"
  }
}'
  1. Then, publish some data:
tedge mqtt pub -r 'te/device/test///m/environment' '{
  "time": "2024-11-12T20:00:00",
  "tavg": 32
}'

The temperature value is displayed as expected, but without any units.

Expected behavior
The units should be displayed alongside the data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions