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

Interface: ProcessCmd

This interface process a command and is capable of the hnadling of command led_on, led_off, radio_louder and radio_quieter

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

Commands

Events

Commands - Details

execute

result_t execute(TOS_MsgPtr pmsg)

This command extracts the command from the message 'pmsg' and executes the command.
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.