thin-edge doesn’t currently support units.
So only the following is a valid thin-edge input:
tedge mqtt pub te/device/main///m/environment ‘{ “Temperature”: 25}’
leading to the following message sent to c8y:
{
“Temperature”:{“Temperature”:{“value”:25.0}},
“time”:“2025-09-02T07:21:55.521501557Z”,
“type”:“environment”
}
And as far as I understand this post, this message will be accepted by C8Y , the unit field being omitted entirely.
There is a plan for thin-edge to support units. Unfortunately this has not been implemented yet. See MQTT API | Thin-edge . We are open to discussion.