Unet gateway to connect to UnetStack from external applications.
Modifiers | Name | Description |
---|---|---|
protected static long |
RANGE_TIMEOUT |
|
protected static long |
REQUEST_TIMEOUT |
Fields inherited from class | Fields |
---|---|
class Gateway |
NON_BLOCKING, BLOCKING |
Constructor and description |
---|
UnetGateway
(String hostname, int port) Creates a connection to a specified UnetStack over TCP/IP. |
UnetGateway
(String devname, int baud, String settings) Creates a connection to a specified UnetStack over RS232. |
Type Params | Return Type | Name and description |
---|---|---|
|
float |
range(int to) Get range to node. |
|
UnetSocket |
socket() Creates a socket for transmission/reception of datagrams. |
Methods inherited from class | Name |
---|---|
class Gateway |
finalize, flush, close, topic, topic, topic, topic, topic, send, receive, receive, receive, receive, receive, receive, receive, receive, getPlatform, request, request, subscribe, getContainer, agent, agentForService, agentForService, agentsForService, agentsForService, getAgentID, unsubscribe, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Creates a connection to a specified UnetStack over TCP/IP.
hostname
- hostname to connect to.port
- TCP port to connect to.Get range to node.
to
- node address to range toCreates a socket for transmission/reception of datagrams.
Copyright 2013-19, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd