Hello,

I would like to ask if OIC has a solution for the following flow
control related use cases:

1. client1 wants to observe sensor1, and wants 1 update message sent
per second with 1 reading sample.

2. client2 wants to observe sensor1, and wants the data sampled with
100 Hz, but max 1 message per 10 seconds (each update containing
100*10 samples).

3. client3 wants to observe sensor1, and wants data sampled with 1
KHz, with 1 message per second. The server1 response is an error
telling "I cannot handle that, but I could handle max 500 Hz sampling
rate with 1 message per second", or "I could handle max 1000 Hz
sampling rate with 1 message in 2 seconds". Then client3 can decide if
it wants to observe still, and modify the observe parameters.

So far OIC seems to support for the first use case, but not 2 and 3.

My reasoning: in the client I want to avoid a flood of unneeded
updates, and in the sensor implementation I want to use the observe
parameters to optimize power, networking etc resources.

It would be nice to have an optional parameter to observe indication,
telling a desired sampling rate, and a desired update rate (or the
number of samples per update message).
The default value for these could be 1 sample for each update, with
the update message sent at the server discretion (whenever the value
changes, or as frequently the server can send it).

Best regards,
Zoltan

Reply via email to