Assuming a (simple) float is merely 32 bits encoded in a particular fashion...
...and assuming the mote and the PC encode the float in the same fashion...
...just send it as a nx_uint32_t (arbitrary 4 bytes of data) and decode...
(of course, these are truly assumptions on my part ;-)

Also, verify printf (or whatever you are using) correctly works with floats.
It very well simply may not.

HTH,
Paul

On Sat, Jul 26, 2008 at 4:26 PM, hamsa jega <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Is there any way to send floating point values using the existing tools in
> tinyos2 from oc to display. I couldn't use a nx_float.
>
> My printf test aplication gives me a resynchronizing line and then doesn't
> print anything. I have put in the java files, compiled them, created the jar
> file and checked out the printf lib files and the test application for
> printf from cvs. Is there anything else that needs to be done?
>
> Thank you,
> Hamsa
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to