Interface: tos.lib.Deluge.NetProg

interface NetProg

Top level interface for network programming integration with applications.

Author:
Jonathan Hui <jwhui@cs.berkeley.edu>

Commands
command result_t programImgAndReboot(uint8_t imgNum) Reboot into the image specified by imgNum.
command result_t reboot() Reboot the node.

Commands - Details

programImgAndReboot

command result_t programImgAndReboot(uint8_t imgNum)

Reboot into the image specified by imgNum. This assumes that an image has been downloaded into slot imgNum using Deluge.

Parameters:
imgNum - Number of image to boot in to.
Returns:
FAIL if the reboot command fails to complete due to an invalid imgNum or incomplete image, does not return, otherwise.

reboot

command result_t reboot()

Reboot the node.

Returns:
Does not return.