Paul Alfille <[email protected]> wrote:
> owcapi uses the same library as owserver so should work fine with
> OW_init("--w1") in the init call.
Unfortunately it does seem to behave differently.
Here ist the code:
This version works fine:
#include <stdio.h>
#include <owcapi.h>
int main() {
char *s1;
size_t slen1;
OW_init("localhost:4304");
OW_get("/",&s1,&slen1);
printf("%s\n",s1);
}
Output:
10.0E72BC000800/,bus.0/,uncached/,settings/,system/,statistics/,structure/,simultaneous/,alarm/
This version shows anything but the actual sensor:
#include <stdio.h>
#include <owcapi.h>
int main() {
char *s1;
size_t slen1;
OW_init("--w1");
OW_get("/",&s1,&slen1);
printf("%s\n",s1);
}
Output:
bus.0/,uncached/,settings/,system/,statistics/,structure/
In case of the first version I run "owserver --foreground --w1"
Sven
--
"Thinking of using NT for your critical apps?
Isn't there enough suffering in the world?"
(Advertisement of Sun Microsystems in Wall Street Journal)
/me is giggls@ircnet, http://sven.gegg.us/ on the Web
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers