Page 1 of 1

MQTT

Posted: Thu Dec 17, 2020 8:18 am
by Alan_37
Good morning,

Is it possible to have the MQTT Address as a variable? so that we can set it when the code is running

Re: MQTT

Posted: Thu Dec 17, 2020 10:04 am
by Steve-Matrix
If you are creating an App Developer program that is running on the PC, then you can use a simulation macro to alter any property value (Component.Property.SetValue). However, for an embedded program, the host address of the MQTT_Client component is currently hardcoded.

It might be possible to include a function to set this value in a future update of the component. I'll ask Ben or Leigh to comment...

Re: MQTT

Posted: Thu Dec 17, 2020 10:09 am
by BenR
Hi Alan,

I've now added in this functionality for you via a new property to enable it and a new macro to set the address.

I'll get it pushed to the update system shortly.

Re: MQTT

Posted: Thu Dec 17, 2020 11:14 am
by Alan_37
Hi Ben / Steve

Thanks for your prompt reply and fix will update and test.

Thanks again