MQTT

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
Post Reply
Alan_37
Posts: 118
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 34 times
Been thanked: 16 times

MQTT

Post 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

Steve-Matrix
Matrix Staff
Posts: 1234
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: MQTT

Post 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...

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: MQTT

Post 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.

Alan_37
Posts: 118
Joined: Thu Dec 03, 2020 7:23 pm
Has thanked: 34 times
Been thanked: 16 times

Re: MQTT

Post by Alan_37 »

Hi Ben / Steve

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

Thanks again

Post Reply