# The maschine readings should be pulished to which cumulocity data type

**URL:** <https://community.cumulocity.com/t/the-maschine-readings-should-be-pulished-to-which-cumulocity-data-type/1016>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [October 9, 2022, 7:23am UTC](https://community.cumulocity.com/t/the-maschine-readings-should-be-pulished-to-which-cumulocity-data-type/1016 "2022-10-09T07:23:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![prathyusha.kanda](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@prathyusha.kanda](https://community.cumulocity.com/u/prathyusha.kanda)\
**Post date:** [October 9, 2022, 7:23am UTC](https://community.cumulocity.com/t/the-maschine-readings-should-be-pulished-to-which-cumulocity-data-type/1016/1 "2022-10-09T07:23:53Z")

</div>

#### What product/components do you use and which version/fix level are you on?

latest

#### Is your question related to the free trial, or to a production (customer) instance?

production

#### What are you trying to achieve? Please describe it in detail.

Our gateway device uses the digital input devices to read the data from maschines. To which type of data we need to publish if we want to send these data to cumulocity.  
Events or measuremnets.

#### Do you get any error messages? Please provide a **full error** message screenshot and log file.

#### Have you installed all the latest fixes for the products and systems you are using?

yes

---

<div class="post-metadata">

**Author:** ![Murat\_Bayram](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/murat_bayram/32/3670_2.png) [@Murat\_Bayram](https://community.cumulocity.com/u/Murat_Bayram)\
**Post date:** [October 10, 2022, 7:28am UTC](https://community.cumulocity.com/t/the-maschine-readings-should-be-pulished-to-which-cumulocity-data-type/1016/2 "2022-10-10T07:28:46Z")

</div>

Hi,

usually the Cumulocity Domain Model separates events and measurements the following:

- **Measurements** contain numerical data produced by sensors (like temperature readings)

- **Events** contain other real-time information from the sensor network, such as the triggering of a door sensor.

However there might be an overlap. Can you describe a bit more what the data represents?

---

<div class="post-metadata">

**Author:** ![prathyusha.kanda](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@prathyusha.kanda](https://community.cumulocity.com/u/prathyusha.kanda)\
**Post date:** [October 11, 2022, 1:12pm UTC](https://community.cumulocity.com/t/the-maschine-readings-should-be-pulished-to-which-cumulocity-data-type/1016/3 "2022-10-11T13:12:25Z")

</div>

The data we receives from devices are continous binary values.

---

<div class="post-metadata">

**Author:** ![Murat\_Bayram](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/murat_bayram/32/3670_2.png) [@Murat\_Bayram](https://community.cumulocity.com/u/Murat_Bayram)\
**Post date:** [October 11, 2022, 1:16pm UTC](https://community.cumulocity.com/t/the-maschine-readings-should-be-pulished-to-which-cumulocity-data-type/1016/4 "2022-10-11T13:16:52Z")

</div>

That’s only a partial answer, what do these binary values represent?

---

<div class="post-metadata">

**Author:** ![prathyusha.kanda](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@prathyusha.kanda](https://community.cumulocity.com/u/prathyusha.kanda)\
**Post date:** [October 11, 2022, 1:20pm UTC](https://community.cumulocity.com/t/the-maschine-readings-should-be-pulished-to-which-cumulocity-data-type/1016/5 "2022-10-11T13:20:20Z")

</div>

The values represents High and Low or On and off

---

<div class="post-metadata">

**Author:** ![Murat\_Bayram](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/murat_bayram/32/3670_2.png) [@Murat\_Bayram](https://community.cumulocity.com/u/Murat_Bayram)\
**Post date:** [October 11, 2022, 1:44pm UTC](https://community.cumulocity.com/t/the-maschine-readings-should-be-pulished-to-which-cumulocity-data-type/1016/6 "2022-10-11T13:44:02Z")

</div>

On and off (or at least the transition) can be modeled as both.

1. Measurement: 1 = On, 0 = off
2. Event: e.g. {“TransititionTo”: “On”}, {“TransititionTo”: “Off”}

Measurements can be easier used to be visualized via dashboards in a timeline.

If high and low is not a bool but the actually high and low value from within a certain timeframe it feels like a measurement would be the better choice here. But more insights would be helpful I guess.

---

<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:** [April 9, 2023, 1:44pm UTC](https://community.cumulocity.com/t/the-maschine-readings-should-be-pulished-to-which-cumulocity-data-type/1016/7 "2023-04-09T13:44:35Z")

</div>

Closed on April 9, 2023, 1:44pm UTC

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