Pat,
Can you please elaborate on how we can use resource type and interface types 
for manipulating values and ranges. 

One way I can think is to use resource type as metadata for defining ranges. 
For example if we want to define brightness data we will can say:
addType(std::string("brightness.min.0"))  
addType(std::string("brightness.max.100")) 

Is there something else that I am missing.

Thanks
Uday 
-----Original Message-----
From: Lankswert, Patrick [mailto:[email protected]] 
Sent: Monday, April 06, 2015 7:12 PM
To: Pulleti, Uday Kiran; iotivity-dev at lists.iotivity.org
Subject: RE: [dev] Question on Resource discovery

Uday,

Not currently. You can query the interface for the resource type and
interface types. The types define the operations, representation format,
values and ranges.

Pat

> -----Original Message-----
> From: iotivity-dev-bounces at lists.iotivity.org [mailto:iotivity-dev-
> bounces at lists.iotivity.org] On Behalf Of Pulleti, Uday Kiran
> Sent: Monday, April 06, 2015 8:56 AM
> To: iotivity-dev at lists.iotivity.org
> Subject: [dev] Question on Resource discovery
> 
> 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
> 
> At the time of discovery do we have a feature where the client can learn
> about all possible values each data parameter can take.
> 
> Regards
> Uday
> 
> _______________________________________________
> iotivity-dev mailing list
> iotivity-dev at lists.iotivity.org
> https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to