I have written a small Java application to read 10 DS18B20 (powered) at any chosen resolution using OWFS.
I cannot get the "simultaneous" function to work. The code is :
FileOutputStream ThermoFile_OutputStream = new FileOutputStream("/mnt/1wire/simultaneous/temperature");
DataOutputStream ThermoFile_OutputData = new DataOutputStream(ThermoFile_OutputStream);
int x = 1;
On the .write(x) I get error message "Simu write Error message was : Invalid argument"
What am I doing wrong ?
In addition, how does the API know at which resolution todo the reads... Does the API wait for the next cached read and use the chosen resolution (eg when reading 28.xxx/temperature9 for 9 bit) or does it just default out to max 12 bit resolution.
Any help would be greatly appreciated.