Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module http-adapter not loaded #65

Closed
anirbanSP opened this issue Jun 14, 2024 · 2 comments
Closed

Module http-adapter not loaded #65

anirbanSP opened this issue Jun 14, 2024 · 2 comments

Comments

@anirbanSP
Copy link

anirbanSP commented Jun 14, 2024


Issue: http-adapter Module Not Loading

Description

Hi,

I have installed the MTConnect agent from the .exe file on my Windows 10 PC. I am trying to launch the .exe with the following configuration:

modules:
  - http-adapter:
      address: mtconnect.mazakcorp.com
      port: 5610
      deviceKey: M12346
      interval: 100
      heartbeat: 10000
      useSSL: false
      currentOnly: false
      useStreaming: false
      
  - mqtt-relay:
      server: localhost
      port: 1883
      topicPrefix: MTConnect
      topicStructure: Document
      documentFormat: JSON-CPPAGENT-MQTT
      currentInterval: 5000
      sampleInterval: 5000
      clientId: my-mqtt-client
      reconnectInterval: 10000
      currentOnly: false

But the agent logs show that it is not loading the http-adapter module for some reason. Here is the log:

2024-06-14 12:11:32.5885|INFO|application-logger|Agent Configuration Path = agent.config.yaml
2024-06-14 12:11:32.6718|INFO|application-logger|Configuration File Read Successfully from: C:\Program Files\TrakHound\MTConnect.NET-Agent\agent.config.yaml
2024-06-14 12:11:32.9811|INFO|application-logger|Module Loaded : MQTT Relay
2024-06-14 12:11:35.0843|INFO|modules.mqtt-relay|MQTT Relay Connected to External Broker (localhost:1883)

Is there something wrong with the configuration (because it's copied from the example on GitHub)?

Steps to Reproduce

  1. Install the MTConnect agent using the .exe file on Windows 10.
  2. Use the provided configuration.
  3. Start the agent and observe the logs.

Expected Behavior

The http-adapter module should load and connect to the specified address and port.

Actual Behavior

The http-adapter module does not load, while the mqtt-relay module connects successfully.

Environment

  • Windows 10
  • MTConnect.NET Agent version: 6.4.1.0

@anirbanSP
Copy link
Author

the "http-adapter" module should be loaded as "http-client" in the config file. I think the example configuration for http-adapter should be updated to reflect this change.

PatrickRitchie added a commit that referenced this issue Jun 14, 2024
…-adapter' instead of 'http-client'

- Addresses issue #65
- NOTE : This will need to be updated for any existing configurations
@PatrickRitchie
Copy link
Contributor

Thank you for finding this issue. It looks like this was a mistake in the module and not the example configuration. I just published a new release that uses the 'http-adapter' ID. Please let me know if you have any further questions/thoughts about this.

Release 6.4.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants