SunSPOT API V5.0


com.sun.spot.peripheral.ota
Interface IOTACommandServerListener


public interface IOTACommandServerListener

This interface must be supported by any object that wishes to receive notifications from a IOTACommandServer.

The purpose of this interface is to allow applications to take some action - eg suspend - while over-the-air downloads are in progress.

To register as a listener:

...
IOTACommandServer spotMon = Spot.getInstance().getOTACommandServer();
spotMon.addListener(this);
...


Method Summary
 void postFlash()
          Called by the OTACommandServer at the end of an over-the-air download
 void preFlash()
          Called by the OTACommandServer prior to beginning an over-the-air download
 

Method Detail

preFlash

void preFlash()
Called by the OTACommandServer prior to beginning an over-the-air download


postFlash

void postFlash()
Called by the OTACommandServer at the end of an over-the-air download


SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.