nc-link-adapter-plugin
is an ingress plugin for MTConnect Agents. The plugin runs inside the agent as an internal adapter. It collects data from the NC-Link's MQTT servers and provides stream updates.
Devices = _metaagent_.xml
Port = 7979
Adapters
{
NC-LINK_ADAPTER:NC-Link
{
uuid = d1
mqtt = demo.mtconnect.org
port = 1883
#
# Additional optional connection info
# user = <user's id>
# password = <user's password>
# cacert = <location of cacert file. Format: PEM>
#
# default useWebSocket is false
# useWebSocket = <true or false>
#
# licenseKey= <your license key - default is demo mode if not provided>
# option to override logger config for this adapter
logger_config {
output = file nc-link-adapter.log
level = info
}
}
}
uuid
: The NC-Link device ID. It is used to identify and capture the device's data in the MQTT stream data.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.
C:\Program Files\MetaAgent\examples\nc-link-adapter-plugin>agent run
MTConnect Agent Version 2.2.0.592 - built on Mon Oct 9 22:38:46 2023
[2023-10-29 08:51:04.457706] [0x00001c4c] [trace] Found file 'agent.cfg' in path "C:\\Program Files\\MetaAgent\\examples\\nc-link-adapter-plugin"
[2023-10-29 08:51:04.457706] [0x00001c4c] [info] Loading configuration from: "C:\\Program Files\\MetaAgent\\examples\\nc-link-adapter-plugin\\agent.cfg"
Loading configuration from:"C:\\Program Files\\MetaAgent\\examples\\nc-link-adapter-plugin\\agent.cfg"