On Monday 06 April 2015 12:56:27 Pulleti, Uday Kiran wrote: > Hi, > I have a question on resource discovery aspect of the stack. In the current > stack, when a client discovers a resource, it can request for all the > parameters of the resource. I want to know if the stack has a feature which > tells the client about all the possible values that the resource data can > take. For example take a light resource with the following parameters: > Light: > { string name: "Light1" > int brightness: 20 > string color: "Red" > } > > Let us say Light resource data has following constraints: > name can take any string as input > brightness can take values between 0 to 100 > color can take "Red", "Green" and "Blue" as values
The limitations on name and brightness seem to be the limitations from the spec. The device does not need to list the possible values if the possible values are exactly those that the spec says it should support. As for "color", I understand that the device may not be able to show all colours, so it may need to report what values are possible. I haven't seen this kind of capability querying and reporting in the spec so far. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center