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

Add ability to change MQTT topic and or gateway name by MQTT command. #1053

Merged
merged 2 commits into from
Aug 5, 2021

Conversation

h2zero
Copy link
Collaborator

@h2zero h2zero commented Aug 5, 2021

Description:

This adds new commands to allow changing the MQTT topic and or gateway name from a command.
The new topic/name will be saved in flash memory and used on subsequent reboots.
Either/both parameters can be sent or combined with other commands.

Example use:

mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoSYS/config" -m
'{
  "mqtt_topic": "topic",
  "gateway_name: "name"
}'

Checklist:

  • The pull request is done against the latest development branch
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • I accept the DCO.

This adds new commands to allow changing the MQTT topic and or gateway name from a command.
The new topic/name will be saved in flash memory and used on subsequent reboots.
Either/both parameters can be sent or combined with other commands.

Example use:
```
mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoSYS/config" -m
'{
  "mqtt_topic": "topic",
  "gateway_name: "name"
}'
```
@h2zero h2zero force-pushed the change-mqtt-topic branch from 7a387fd to 5383b3a Compare August 5, 2021 04:53
@1technophile 1technophile added this to the v0.9.9 milestone Aug 5, 2021
@1technophile 1technophile merged commit ca61693 into 1technophile:development Aug 5, 2021
@h2zero h2zero deleted the change-mqtt-topic branch January 27, 2022 02:35
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