Hello everyone, I'm actually using the printf function in the telosb and shimmer2r platforms, I followed this tutorial to do so:
http://docs.tinyos.net/tinywiki/index.php/The_TinyOS_printf_Library but I think it has some problems though, However what I did was the following: 1) In the Makefile I included the printf library using the following: CFLAGS +=-I tinyos-2.x/tos/lib/printf` 2) In the module I included the library with: #include "printf.h" 3) To printf messages I used: printf("Hello mote! \n"); printfflush(); regards, 2011/5/31 Nicholas Hosein <[email protected]> > I noticed in the Boiler plate app there is the line: > > extern int sprintf(char *str, const char *format, ...) __attribute__ ((C)); > > Is this a way to use printf statements in the code? If so how? > > Best, > > Nick > > _______________________________________________ > Shimmer-users mailing list > [email protected] > https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users > > -- Andrés Felipe Murillo Ingeniero Electrónico Grupo de Investigación en Sistemas de Telemando y Control Distribuido Universidad Autónoma de Occidente Cali, Colombia
_______________________________________________ Shimmer-users mailing list [email protected] https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
