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 |
send, receive, receive, receive, receive, receive, receive, receive, receive, getPlatform, request, request, subscribe, authenticate, getContainer, finalize, flush, close, getAgentID, unsubscribe, agentForService, agentForService, agentsForService, agentsForService, topic, topic, topic, topic, topic, agent, 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