IoT-data-simulator icon indicating copy to clipboard operation
IoT-data-simulator copied to clipboard

How to specify rule type of the object in json?(Step 5 of 7. Data processing rules)

Open callofdutyops opened this issue 6 years ago • 2 comments
trafficstars

I define a json schema and there are nesting objects. The rule type in this situation seems useless because it just another nesting json schema and the data is defined inside.

This picture shows below: rule-type

callofdutyops avatar Mar 22 '19 07:03 callofdutyops

Hello @callofdutyops Thanks for sharing with us. I think you're right, and there's really not a lot of sense in having Device property Rule type enabled for schema "object", unless we add possibility to define "object" properties in Devices... The only rule type that can be useful in that case is Custom function, but it's available for schema-less definitions.

Will take a look at this.

evgenys91 avatar Mar 22 '19 11:03 evgenys91

Thanks for your reply. @evgenys91 In my case, the device I defined only has one property named deviceId. And I specify the Device property as it (because I must choose one otherwise there'll an error). Although the object property seems unrelated with deviceId, the session works like a charm. I can't confirm whether it's a bug or not.

callofdutyops avatar Mar 22 '19 13:03 callofdutyops