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

Interface: ProcessCmd

This interface is provided by components that can handle a command message arriving as a TOS_MsgPtr.

Components providing this interface:
apps.SenseLightToLog.SimpleCmd
apps.SenseLightToLog.SimpleCmdM

Components requiring this interface:
apps.SenseLightToLog.SenseLightToLogM

Commands

Events

Commands - Details

execute

result_t execute(TOS_MsgPtr pmsg)

Process the command contained in the message 'pmsg'.
Returns: Command execution result.

Events - Details

done

result_t done(TOS_MsgPtr pmsg, result_t status)

Indicate that the command contained in 'pmsg' has finished executing.

Parameters:

status - The status of the command completion.

Returns: Always returns SUCCESS.