On 8/16/2011 19:17, ekgnkb3d wrote:
Hi all,
after some tests with the owcapi I found out, that for example the OW_get()
returns -1 with an errno of "2" in the following cases:
- invalid directory path, like "uncaxxched/"
- wrong CRC in unique-id of the device
- device is not reachable

did I made something wrong, or is there another method of determining a
reason for an error?

Thanks
   Achim

use these before calling ow_init, then you will see the errors.

    OW_set_error_print("0");
    OW_set_error_level("6");
//OW_set_error_level=(0=default, 1=err_connect, 2=err_call, 3=err_data, 4=err_detail, 5=err_debug, 6=err_beyond) //OW_set_error_print sets where the debug output should be directed. 0=mixed output, 1=syslog, 2=console.

It would be nice if the API had an error callback.

/m
------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to