How to adjust config using MQTT?

I am using the Theengs Bridge with this version of the software installed:
{
“latest_version”: “v1.7.0”,
“title”: “OpenMQTTGateway”,
“release_url”: “Release OpenMQTTGateway v1.7.0 · 1technophile/OpenMQTTGateway · GitHub”,
“installed_version”: “v1.7.5”,
“entity_picture”: “https://github.com/1technophile/OpenMQTTGateway/raw/development/docs/img/Openmqttgateway_logo_mini_margins.png”,
“release_summary”: “”
}

I’m trying to change some basic parameters using this command:
mosquitto_pub -u username -P password -t home/TheengsGatewayClient2/TheengsGatewayHallCloset/commands/MQTTtoBT/config -m ‘{“interval”:1000}’

When looking at the MQTT explorer this is what I see happening:

So it shows the requested value of 1000 but within 1 second it returns to its former value of 100.
I also tried to send the “save”:true command, but it makes no difference.

Can anyone explain what is happening and how I can adjust the config using MQTT?

Thanks!

Hello,

Thanks for your support!
This is a good question, the bridge has a feature called adaptive scanning activated per default. This feature changes the scan parameters depending on the ble devices you have.
To deactivate it you can send {"adaptivescan":false, "save":true}, and change your other parameters.
I will update the doc to add it.

Added to the documentation

1 Like