Paul Alfille napisaƂ(a):

On Friday 24 February 2006 06:27 pm, Krzysztof Drewicz wrote:

Good. If you are going to use that interface, I guess we should start using the "version" field to keep everything interoperable. Version is a 4-byte field.

hm, trying to link w/ owlib:
#include "owfs_config.h"
#include "ow.h"

int main()
{
char tmp[1280];
char buf[26];
int len,i;
int res=0;
int  marker=1;
double temp;

strcpy(tmp,"/28.6DC351000000/Temperature");
for(i=0; i<5; i++) {
  if ((len=FS_read(tmp, buf, (size_t)12, 0))>0)
  {


(gdb) run
Starting program: /root/owfs/module/owfscat/src/c/ow_fscat

Breakpoint 1, main () at ow_fscat.c:13
13              strcpy(tmp,"/28.6DC351000000/Temperature");
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0xb7ed4977 in BUS_normalverify (pn=0xbfa04940) at ow_verify.c:51
51 (ret=BUS_select(&pncopy)) || (ret=BUS_send_data( &fo,1,pn )) || (ret=BUS_verify(pn));
(gdb) print pn->path
$6 = 0x80570c8 "/28.6DC351000000/Temperature"


--
Krzysztof Drewicz




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to