nc-link-adapter is an MTConnect adapter process to collect data from NC-Link servers and provide the stream updates for MTConnect Agent according to the requirements of MTConnect specification.
Usage:
nc-link-adapter [config file - default is nc-link-adapter.cfg]
# devices
devices:
    #
    # - name:           <device name>
    #   uuid:           <NC-Link device id>
    - name: NL_Demo
      uuid: 189FFDD66F369F1
# NC-Link MQTT Agent information
NC-Link_Server:
    mqtt: 27.17.57.163
    port: 1883
    #
    # Additional optional connection info
    # user:     <user's id>
    # password: <user's password>
    # cacert:   <location of cacert file>
    #
    # default useWebSocket is false
    # useWebSocket: <true or false>
    #
server:
    port: 7878
    # licenseKey: <your license key - default is demo mode if not provided>
logging:
    # serverity can be debug, info, warn, error or off, default is info
    severity: info
devices : a list of name and uuid pairs. uuid is the NC-Link device ID and it is used to identify and capture the device's data in the MQTT stream data.NC-Link_server
    mqtt : MQTT server's hostname or IP addressport : MQTT server's port #user / password : MQTT login credential if requiredcacert : The location of CA certificate file.useWebSocket : Use web socket, default is false.server
    port : The adapter's listening port
C:\Program Files\MetaAgent\examples\nc-link-adapter>nc-link-adapter
Metalogi MetaAgent - NC-Link/MTConnect Adapter 2.2.0.600 - built on Wed Oct 11 22:28:27 2023
[2023-10-29T05:59:03] info  Settings are loaded from nc-link-adapter.cfg
[2023-10-29T05:59:03] info  listening on port 7878
[2023-10-29T05:59:03] info  Product NC-Link <=> MTConnect is licensed
[2023-10-29T05:59:03] info  Waiting for connection to MQTT Server...
[2023-10-29T05:59:03] info  Connecting adapter to MQTT/TCP Broker on 27.17.57.163:1883
[2023-10-29T05:59:03] info  device [NL_Demo] 189FFDD66F369F1 - stale data update interval -1
[2023-10-29T05:59:04] info  MQTT Server is connected. Start accepting connections.
[2023-10-29T05:59:04] info  Server started, waiting on port 7878