You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by wi...@apache.org on 2020/12/07 21:23:58 UTC

[incubator-streampipes-extensions] branch dev updated: [hotfix] use correct data type/domain property

This is an automated email from the ASF dual-hosted git repository.

wiener pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes-extensions.git


The following commit(s) were added to refs/heads/dev by this push:
     new 26095d7  [hotfix] use correct data type/domain property
26095d7 is described below

commit 26095d73527c8338221ba74861b949e2e37fe6a0
Author: Patrick Wiener <wi...@fzi.de>
AuthorDate: Mon Dec 7 22:23:41 2020 +0100

    [hotfix] use correct data type/domain property
---
 .../connect/adapters/simulator/machine/MachineDataSimulatorUtils.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/simulator/machine/MachineDataSimulatorUtils.java b/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/simulator/machine/MachineDataSimulatorUtils.java
index 95bf9cf..f54c5c8 100644
--- a/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/simulator/machine/MachineDataSimulatorUtils.java
+++ b/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/simulator/machine/MachineDataSimulatorUtils.java
@@ -141,10 +141,10 @@ public class MachineDataSimulatorUtils {
                         .scope(PropertyScope.MEASUREMENT_PROPERTY)
                         .build())
                 .property(PrimitivePropertyBuilder
-                        .create(Datatypes.Float, "sensor_fault_flags")
+                        .create(Datatypes.Boolean, "sensor_fault_flags")
                         .label("Sensor Fault Flags")
                         .description("Any fault flags of the sensors")
-                        .domainProperty(SO.Number)
+                        .domainProperty(SO.Boolean)
                         .scope(PropertyScope.MEASUREMENT_PROPERTY)
                         .build())
                 .build();