Good morning,
Is it possible to have the MQTT Address as a variable? so that we can set it when the code is running
MQTT
-
- Matrix Staff
- Posts: 1276
- Joined: Sat Dec 05, 2020 10:32 am
- Has thanked: 170 times
- Been thanked: 285 times
Re: MQTT
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...
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...
-
- Matrix Staff
- Posts: 1760
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 447 times
- Been thanked: 607 times
Re: MQTT
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel