Interface: tos.lib.net.Deluge.extra.NetProg

interface NetProg

Top level interface for network programming integration with applications.

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

Commands
command error_t programImageAndReboot(uint32_t imageAddr) Reboot into the image specified by imageAddr.
command error_t reboot() Reboot the node.

Commands - Details

programImageAndReboot

command error_t programImageAndReboot(uint32_t imageAddr)

Reboot into the image specified by imageAddr. This assumes that an image is present into the external flash at the imageAddr address.

Parameters:
imageAddr - Address in external flash
Returns:
FAIL if the reboot command fails to complete, does not return, otherwise.

reboot

command error_t reboot()

Reboot the node.

Returns:
Does not return.