|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRadioPolicyManager
Field Summary | |
---|---|
static short |
DEFAULT_PAN_ID
Default PAN id to use. |
Method Summary | |
---|---|
void |
closeBaseStation()
Used in the host to close down the base station - a no-op if called on a Spot |
void |
deregisterConnection(IConnectionID conn)
Notify the policy manager that a connection has closed |
int |
getChannelNumber()
Answer the current channel number (between 11 and 26). |
long |
getIEEEAddress()
|
int |
getOutputPower()
Answer the radio output power in decibels. |
short |
getPanId()
Answer the current pan ID. |
boolean |
isRadioReceiverOn()
|
void |
policyHasChanged(IConnectionID conn,
RadioPolicy selection)
Notify the policy manager that a policy has changed |
void |
registerConnection(IConnectionID conn)
Notify the policy manager of a new connection |
void |
setChannelNumber(int channel)
Set the current channel number (between 11 and 26). |
void |
setOutputPower(int power)
Set the radio output power in decibels (between -32 and +31). |
void |
setPanId(short pid)
Set the pan ID (should not be -1 or -2, which are reserved in the I802.15.4 standard). |
boolean |
setRxOn(boolean rxState)
Attempt to set the radio receiver to on or off |
Field Detail |
---|
static final short DEFAULT_PAN_ID
Method Detail |
---|
void policyHasChanged(IConnectionID conn, RadioPolicy selection)
conn
- the connection owning the policy that has changedselection
- the required radio statevoid registerConnection(IConnectionID conn)
conn
- the connection being registeredvoid deregisterConnection(IConnectionID conn)
conn
- the connection being deregisteredboolean isRadioReceiverOn()
boolean setRxOn(boolean rxState)
rxState
- true for rx on, false for rx off
int getChannelNumber()
long getIEEEAddress()
int getOutputPower()
short getPanId()
void setChannelNumber(int channel)
channel
- - the new channel numbervoid setOutputPower(int power)
power
- - new power setting in decibels.void setPanId(short pid)
pid
- - the new pan IDvoid closeBaseStation()
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |