|
SunSPOT API V4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IOTACommandServer
Field Summary | |
---|---|
static int |
HARDWARE_MAJOR_REV_ESPOT
Major version of the eSPOT hardware to report in response to HELLO_CMD |
static String |
HELLO_CMD
Command to respond information about the SPOT |
static int |
HELLO_COMMAND_MINOR_VERSION
Starting with (major) version 2, we support major/minor version numbering. |
static int |
HELLO_COMMAND_VERSION
Version of the HELLO_CMD that we support |
static int |
PORT
The radiostream port on which to listen for hosts connecting |
static String |
START_OTA_SESSION_CMD
Command that we recognise to start a new session |
Fields inherited from interface com.sun.spot.service.IService |
---|
PAUSED, PAUSING, RESUMING, RUNNING, STARTING, STOPPED, STOPPING |
Method Summary | |
---|---|
void |
addListener(IOTACommandServerListener sml)
Attach a listener to be notified of the start and stop of flash operations. |
String |
getBaseStationAddress()
Answer the IEEE address of the sender of the last command received. |
boolean |
isSuspended()
|
void |
setSuspended(boolean suspended)
|
Date |
timeOfLastMessageFromHost()
|
Methods inherited from interface com.sun.spot.service.IService |
---|
getEnabled, getServiceName, getStatus, isRunning, pause, resume, setEnabled, setServiceName, start, stop |
Field Detail |
---|
static final int PORT
static final String START_OTA_SESSION_CMD
static final String HELLO_CMD
static final int HELLO_COMMAND_VERSION
HELLO_CMD
that we support
static final int HELLO_COMMAND_MINOR_VERSION
static final int HARDWARE_MAJOR_REV_ESPOT
HELLO_CMD
Method Detail |
---|
void addListener(IOTACommandServerListener sml)
sml
- the listenerString getBaseStationAddress()
boolean isSuspended()
void setSuspended(boolean suspended)
suspended
- Suspends or resumes the server (it is initially running).Date timeOfLastMessageFromHost()
|
SunSPOT API V4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |