Hello developers,

I am working on a 1-Wire device that provides multi-sensor data, i.e. 
temperature, humidity, luminosity. I'd like to be able to have an OWFS 
file that allows me to do this:

$ cat /owfs2/uncached/99.010203040506/environs; echo
temp=25.2 RH=48% light=252

This would allow for easy parsing of environmental data without having 
to access different files, i.e. one file for temperature, another for 
humidity, etc.

I am not sure about how to best set up the struct filetype entry to 
accomplish this. In particular, what should I use for the suglen and 
format fields?

In looking at the possibilities, it seems to me like ft_vascii for the 
format is something that could work, but then I am not sure about what 
to use for the suglen field (I guess I could use the largest length that 
could be produced).

Any thoughts on the approach I am considering or if there is a better 
way to do this?

Thanks in advance.

Cheers,

Eloy Paris.-


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to