On 01/08/2016 06:51 AM, Cornie Malan wrote:
Referring to the following in multi-client environment:
"If I got it right, when owserver returns from the write to
/simultaneous/temperature, fresh temp values can be read from the
cache. If you read from /uncached, you trigger a fresh conversion.
- write to /simultaneous/temperature
- immediately read temperatures from the cache (and not from
/uncached)
S.M. originally I was under the impression, that after writing '1'
to /simultaneous/temperature, I would have to read back the value
until owserver sets it to '0' which would indicate that the
conversion is done."
The model could be improved with owserver incrementing the value in
/simultaneous/temperature. This will mean that if any client needs a
conversion, writing a random number to /simultaneous/temperature and
tracking the increment will be possible.
If no specific tracking is required, writing 0 and polling for 1 will
also work.
c-:
Ok just to be clear (this is to my knowledge and testing results):
with owserver 3.1 (and 2.9p8 for that matter) there is no feedback from
owserver that the sensors are done with their (simultaneous) converting
I just wait 2 seconds (1 second might be sufficient to) and read all 25
sensors in a loop after - one after the other.
All sensors have to be read within the time set in owserver for volatile
modules which is 15s as default.
Cheers
Martin
------------------------------------------------------------------------------
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers