|
SunSPOT host API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.spot.client.SpotState
public class SpotState
SpotState is internal to the implementation of the ISpotClientCommandHelper
and all the information
it contains should be accessed via that interface. The implementation of SpotState is subject to change without
notice in future releases.
Field Summary | |
---|---|
static String |
UNKNOWN_BOOTLOADER_TIMESTAMP
|
Constructor Summary | |
---|---|
SpotState(String bootloaderIdentificationString,
String expectedBootloaderTimestamp)
Construct a SpotState to represent a connected SPOT (local or remote). |
Method Summary | |
---|---|
void |
checkStateForBootloaderCmd(boolean checkConfig)
Check whether the remote SPOT is up to date and can execute a command. |
String |
getBootloaderIdentificationString()
|
String |
getBootloaderTimeStamp()
|
ConfigPage |
getConfigPage()
|
String |
getExtendedBootloaderIdentificationString()
|
boolean |
isBootloaderUpToDate()
|
void |
setBootloaderIdentificationString(String bootloaderIdentificationString)
|
void |
setConfigPage(ConfigPage configPage)
Set the ConfigPage . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String UNKNOWN_BOOTLOADER_TIMESTAMP
Constructor Detail |
---|
public SpotState(String bootloaderIdentificationString, String expectedBootloaderTimestamp) throws IOException
SpotClientFatalException
if the SPOT is remote and is running a version of the admin command processor that does not match the SDK.
bootloaderIdentificationString
- the identification string obtained from the SPOTexpectedBootloaderTimestamp
- the timestamp the SDK is expecting as part of the identification string
IOException
Method Detail |
---|
public boolean isBootloaderUpToDate()
SpotClientFatalException
for obsolete remote SPOTs.public void setConfigPage(ConfigPage configPage)
ConfigPage
. Note that this only affects this local representation, and does not update
an actual SPOT.
configPage
- the new ConfigPage
public void checkStateForBootloaderCmd(boolean checkConfig)
checkConfig
- Whether to check bootloader and config page, or just bootloader.public String getBootloaderIdentificationString()
public String getExtendedBootloaderIdentificationString()
public String getBootloaderTimeStamp()
public ConfigPage getConfigPage()
public void setBootloaderIdentificationString(String bootloaderIdentificationString)
|
SunSPOT host API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |