From: klueska This lesson demonstrates how to use the printf
library located in
- tos/lib/printf to debug TinyOS applications by printing messages over the serial
- port.tos/lib/printf
to debug TinyOS applications by printing messages over
+ the serial port.
@@ -342,6 +342,11 @@ event void PrintfFlush.flushDone(error_t error) { level application:
CFLAGS += -I$(TOSDIR)/lib/printf+
"printf.h"
header file in
+ every component in which you would like to call the printf()
+ command. Failure
+ to do so will result in obscure error messages making it difficult to identify
+ the problem.