Apps     Components     Interfaces     All Files     Source Tree     source: apps.SenseLightToLog.SimpleCmdM.nc

Component: SimpleCmdM

This is an enhanced version of SimpleCmd that understands the START_SENSING and READ_LOG commands.

Required Interfaces

Provided Interfaces

Variables

Function Index

Function Descriptions

cmdInterpret

task void cmdInterpret(void)

This task evaluates a command and executes it. Signals ProcessCmd.sendDone() when the command has completed.
Returns: Return: None

Sensing.done

event result_t Sensing.done (void)

Signalled in response to the event from Sensing.done.
Returns: Always returns SUCCESS

StdControl.init

command result_t StdControl.init (void)

Initialize the application.
Returns: Success of component initialization.

StdControl.start

command result_t StdControl.start (void)

Start the application.
Returns: Always returns SUCCESS

StdControl.stop

command result_t StdControl.stop (void)

Stop the application.
Returns: Always returns SUCCESS

LoggerRead.readDone

event result_t LoggerRead.readDone (uint8_t *packet, result_t success)

Signalled when the log has completed the reading, and now we're ready to send out the log message.
Returns: Always returns SUCCESS

ProcessCmd.execute

command result_t ProcessCmd.execute (TOS_MsgPtr pmsg)

Post a task to process the message in 'pmsg'.
Returns: Always returns SUCCESS

ProcessCmd.done

event result_t ProcessCmd.done (TOS_MsgPtr pmsg, result_t status)

Default event handler for ProcessCmd.done.
Returns: The value of 'status'.

SendLogMsg.sendDone

event result_t SendLogMsg.sendDone (TOS_MsgPtr pmsg, result_t status)

Reset send_pending flag to FALSE in response to SendLogMsg.sendDone.
Returns: The value of 'status'.