Sounds like a bug in owcapi -- I'll check.
Paul Alfille
On 6/2/07, Sven Geggus <[EMAIL PROTECTED]> wrote:
Hi there,
my last posting I assumed this to be a bug of owtcl, but its not!
Presumably I have just got some misunderstanding of the API.
Anyway, this did work with some older Version of owfs!
So, whats wrong with this piece of code:
--cut--
int main() {
char *s;
size_t n;
if(OW_init("localhost:55555") !=0) exit(1);;
OW_get("/10.B963D4000800/type",&s,&n);
printf("%d\n",n);
if (n >0) printf("%s\n",s);
OW_finish();
exit(EXIT_SUCCESS);
}
--cut--
BTW, it works just fine, when I replace "/10.B963D4000800/type" by
"/10.B963D4000800" only.
Sven
--
/* Fuck me gently with a chainsaw... */
(David S. Miller in /usr/src/linux/arch/sparc/kernel/ptrace.c)
/me is [EMAIL PROTECTED], http://sven.gegg.us/ on the Web
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers