| Package | Description |
|---|---|
| example | |
| me.legrange.panstamp |
Provides the top level abstractions for working with a panStamp network.
|
| me.legrange.panstamp.definition |
Device definition objects can be used to define device capabilities.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ReadTemps.doExampleCode(Network nw) |
protected void |
ReadAndSetPanStampInformation.doExampleCode(Network nw) |
protected void |
ReadAndSetNetworkInformation.doExampleCode(Network nw) |
protected void |
NetworkEvents.doExampleCode(Network nw) |
protected void |
ListDevices.doExampleCode(Network nw) |
protected abstract void |
Example.doExampleCode(Network nw) |
protected void |
ReadTemps.run() |
protected void |
Example.run() |
| Modifier and Type | Class and Description |
|---|---|
class |
DeviceNotFoundException
Exception thrown if a panStamp device cannot be found
|
class |
EndpointNotFoundException
Exception thrown in cases where it is expected to find an endpoint, and it
doesn't exist.
|
class |
ModemException
Thrown when there is a problem with modem communication.
|
class |
NodeNotFoundException
Thrown when a panStamp device cannot be found in the network.
|
| Modifier and Type | Method and Description |
|---|---|
int |
PanStamp.getChannel()
Return the network channel
|
DeviceDefinition |
DeviceLibrary.getDeviceDefinition(int manufacturedID,
int productId)
get the device definition based on the supplied manufacturer ID and product ID.
|
int |
PanStamp.getManufacturerId()
Get the device manufacturer id.
|
int |
PanStamp.getNetwork()
Return the network ID
|
int |
PanStamp.getProductId()
Get the device product id.
|
int |
PanStamp.getSecurityOption()
Return the current security option
|
int |
PanStamp.getSyncState()
Return the current sync state
|
int |
PanStamp.getTxInterval()
Return the transmit interval
|
T |
Parameter.getValue() |
T |
Endpoint.getValue()
returns the current value of the endpoint.
|
T |
Endpoint.getValue(String unit)
returns the current value of the endpoint in the given unit.
|
boolean |
DeviceLibrary.hasDeviceDefinition(int manufacturedID,
int productId)
Checks if a device definition for the supplied manufacturer ID and product ID is available.
|
boolean |
Register.hasEndpoint(String name)
returns true if the device has an endpoint with the given name
|
void |
Network.open()
Open the network.
|
static Network |
Network.openSerial(String port,
int baud)
Create a new serial network (network attached to a serial port) with the
given port and speed, and with the default device library and data store.
|
static Network |
Network.openTcp(String host,
int port)
Create a new TCP/IP network (network attached to a remote TCP service)
with the given host and port, and with the default device library and
data store.
|
void |
PanStamp.setAddress(int addr)
Set the address of the panStamp
|
void |
PanStamp.setChannel(int channel)
Set the network channel of the device
|
void |
Network.setChannel(int channel)
Set the frequency channel
|
void |
Network.setDeviceAddress(int addr)
Set the device address for the network panStamp
|
void |
PanStamp.setNetwork(int network)
Set the network id of the device
|
void |
Network.setNetworkId(int id)
Set the network ID for the network accessed by this network
|
void |
PanStamp.setSecurityOption(int option)
Set the security option of the device.
|
void |
PanStamp.setTxInterval(int txInterval)
Set the transmit interval (in seconds) of the device.
|
void |
Register.setValue(byte[] value)
set the register value and send to remote node
|
void |
Endpoint.setValue(String unit,
T value)
set the value of the endpoint
|
void |
Parameter.setValue(T value)
set the value of the parameter
|
void |
Endpoint.setValue(T value)
set the value of the endpoint
|
| Constructor and Description |
|---|
PanStamp(Network gw,
int address)
create a new mote for the given address in the given network
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefinitionException
Thrown when there is a problem with panStamp device definitions.
|
| Modifier and Type | Method and Description |
|---|---|
DeviceDefinition |
CompoundDeviceLibrary.getDeviceDefinition(int manufacturedID,
int productId) |
boolean |
CompoundDeviceLibrary.hasDeviceDefinition(int manufacturedID,
int productId) |
Copyright © 2015. All rights reserved.