Solved
Get list of all properties implemented in a ThingShape
Hello,
Is there a way to get all the properties implemented in a ThingShape? For a Thing if I use the method "GetPropertyDefinitions()" it works fine
var params = {
category: undefined /* STRING */,
type: undefined /* BASETYPENAME */,
dataShape: undefined /* DATASHAPENAME */
};
result = Things["MyThing"].GetPropertyDefinitions(params);
//This Works fine, I get the infotable with the list of all the properties
; but when I use it with ThingShape, it returns me a blank infotable.
var params = {
category: undefined /* STRING */,
type: undefined /* BASETYPENAME */,
dataShape: undefined /* DATASHAPENAME */
};
result = ThingShapes["MY_THINGSHAPE"].GetPropertyDefinitions(params);
//This returns a blank infotable
Any help would be appreciated.
Thanks in advance
- Aditya Mittal

