The UDP (Client) output sends data from event records to a UDP server using a UDP socket connection. Data can be formatted as delimited text or JSON. UDP datagrams (messages) are sent via unicast.
Example
以下是输出的使用示例:
A weather station sends real-time temperature and humidity data to a central server using UDP in JSON format.
Usage notes
使用输出时,请谨记以下信息:
- ArcGIS Velocity supports multiple output data formats when using the UDP (Client) output. The output formats include JSON, GeoJSON, EsriJSON, and delimited text.
- It is recommended that data from different feeds use their own output connectors and ports.
- When output is formatted as delimited text, if you want a header row, you must select the Write header row option.
- A field delimiter must be specified when formatting data as delimited text. Common delimiters are comma, semicolon, and pipe characters.
Parameters
以下是输出的参数:
| Parameter | Description | Data type |
|---|---|---|
| Host (必填) | The host address that UDP datagrams (messages) publishes to using a UDP socket. The default is localhost, but any accessible hostname or IP address can be specified. | 字符串 |
| Port (必填) | The server port used to establish a UDP socket connection—for example, 5005. | 整型 |
| Output data format (必填) | The format of the output data. The available options are EsriJSON, GeoJSON, Delimited text, and JSON. | Output data format type |