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

MQTT command endpoint #49

Merged
merged 3 commits into from
Oct 26, 2023
Merged

MQTT command endpoint #49

merged 3 commits into from
Oct 26, 2023

Conversation

stintel
Copy link
Collaborator

@stintel stintel commented Oct 25, 2023

No description provided.

As there is no support for this in the UI yet:

curl http://your.was.host:8502/api/config?type=config | jq > was-config.json

Modify was-config.json to include:

  "command_endpoint": "MQTT",
  "mqtt_auth_type": "userpw",
  "mqtt_host": "your.mqtt.host",
  "mqtt_password": "bar",
  "mqtt_port": 1883,
  "mqtt_tls": false,
  "mqtt_topic": "foo",
  "mqtt_username: "foo",

Then:

curl -X POST -H "content-type: application/json" -d @was-config.json  "http://your.was.host:502/api/config?type=config&apply=false"

Finally in WAS UI apply config to the client you want to test the MQTT
endpoint with.

Closes: #45
@stintel stintel force-pushed the feature/mqtt_endpoint branch from 41215b8 to 57deaec Compare October 25, 2023 16:56
@kristiankielhofner kristiankielhofner merged commit 279e62a into main Oct 26, 2023
3 checks passed
@kristiankielhofner kristiankielhofner deleted the feature/mqtt_endpoint branch October 26, 2023 17:58
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

Successfully merging this pull request may close these issues.

2 participants