IoT-data-simulator
IoT-data-simulator copied to clipboard
How to specify rule type of the object in json?(Step 5 of 7. Data processing rules)
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:

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.
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.