# Sending multiple measurements in a single go with thin-edge.io

**URL:** <https://community.cumulocity.com/t/sending-multiple-measurements-in-a-single-go-with-thin-edge-io/7092>\
**Category:** Forum\
**Tags:** cumulocity-edge, thin-edge-io, device-connectivity, cumulocity\
**Created:** [January 24, 2024, 3:31pm UTC](https://community.cumulocity.com/t/sending-multiple-measurements-in-a-single-go-with-thin-edge-io/7092 "2024-01-24T15:31:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aneel\_Chaladi](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@Aneel\_Chaladi](https://community.cumulocity.com/u/Aneel_Chaladi)\
**Post date:** [January 24, 2024, 3:31pm UTC](https://community.cumulocity.com/t/sending-multiple-measurements-in-a-single-go-with-thin-edge-io/7092/1 "2024-01-24T15:31:54Z")

</div>

Hello everyone,

I am currently working on a Proof of Concept (POC) using the MQTT protocol to publish data to Cumulocity IoT. I would like guidance on sending multiple measurements in a single go. Can anyone provide assistance with this.

```auto
payload = {"my_customMeasurement": {"T": {"unit": "C","value": 2.0791169082}}}
self.c8y_client.publish(topic="te/device/main///m/my_customMeasurement", payload=json.dumps(payload)) 

```

---

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [January 24, 2024, 4:59pm UTC](https://community.cumulocity.com/t/sending-multiple-measurements-in-a-single-go-with-thin-edge-io/7092/2 "2024-01-24T16:59:08Z")

</div>

I think you mix up things.

If you are sending messages to a thin-edge mapper topic it must be in the thin-edge format: [Thin Edge JSON | Thin-edge](https://thin-edge.github.io/thin-edge.io/understand/thin-edge-json/#multi-valued-measurements)

If you want to send messages directly to C8Y you have to use this topic `c8y/measurement/measurements/create` within thin-edge: [Thin Edge JSON | Thin-edge](https://thin-edge.github.io/thin-edge.io/understand/thin-edge-json/#multi-valued-measurements)

The example you’ve posted does not work at all as the payload does not match to the topic you are using.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [July 22, 2024, 4:59pm UTC](https://community.cumulocity.com/t/sending-multiple-measurements-in-a-single-go-with-thin-edge-io/7092/3 "2024-07-22T16:59:26Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
