Interface: tos.lib.net.CollectionDebug
interface CollectionDebug
The CollectionDebug is an interface for sending debugging events to
a logging infrastructure. An implementer can choose to send the event
information to different destinations. Primary examples can include:
- logging to the UART, in case of a testbed of network-connected
nodes;
- logging to flash, if the logs are to be retrieved later
- logging to the standard output, in the case of TOSSIM.
The interface does not specify in what format the log is to be produced,
or if other information, like timestamps, should be added, and this is
up to the implementer.
Some commands are generic, like Event, EventSimple, and EventDbg, while others
are for more specific events related to collection, like EventRoute and EventMsg.
- Author:
-
Rodrigo Fonseca
-
Kyle Jamieson
- Date:
-
$Date: 2006/12/12 18:23:28 $
Commands
command error_t logEventDbg(uint8_t type, uint16_t arg1, uint16_t arg2, uint16_t arg3)
command error_t logEventMsg(uint8_t type, uint16_t msg, am_addr_t origin, am_addr_t node)
command error_t logEventRoute(uint8_t type, am_addr_t parent, uint8_t hopcount, uint16_t metric)
Commands - Details
logEvent
command error_t logEvent(uint8_t type)
logEventDbg
command error_t logEventDbg(uint8_t type, uint16_t arg1, uint16_t arg2, uint16_t arg3)
logEventMsg
command error_t logEventMsg(uint8_t type, uint16_t msg, am_addr_t origin, am_addr_t node)
logEventRoute
command error_t logEventRoute(uint8_t type, am_addr_t parent, uint8_t hopcount, uint16_t metric)
logEventSimple
command error_t logEventSimple(uint8_t type, uint16_t arg)