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 |
topic, topic, topic, topic, topic, send, receive, receive, receive, receive, receive, receive, receive, receive, finalize, flush, close, getPlatform, request, request, subscribe, authenticate, getContainer, agent, getAgentID, unsubscribe, agentForService, agentForService, agentsForService, agentsForService, 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-21, Acoustic Research Laboratory, National University of Singapore, and Subnero Pte Ltd