Page 1 of 1

Please help me change the properties of components

Posted: Tue Jun 24, 2025 4:15 pm
by vvvhydr
I am trying to create a project that uses 2 IotMadeEasy components at the same time. IotMadeEasy1 connects to one server, and IotMadeEasy2 to another. The problem is that IotMadeEasy1 and IotMadeEasy2 use the same variable names such as HOST and others. Please tell me how to make variables like HOST1, PORT1, etc. for the IotMadeEasy1 component, and variables like HOST2, PORT2, etc. for the IotMadeEasy2 component.
Thank you very much.

Re: Please help me change the properties of components

Posted: Tue Jun 24, 2025 4:53 pm
by chipfryer27
Hi

Which version of FC are you using.

Under IOTMadeEasy properties you can set the server name and port, highlighted yellow in this screenshot

Screenshot 2025-06-24 165111.jpg
Screenshot 2025-06-24 165111.jpg (75.38 KiB) Viewed 290 times

Regards

Re: Please help me change the properties of components

Posted: Tue Jun 24, 2025 10:59 pm
by medelec35
Hello.
During code generation, the value (or string) you enter is compiled into a constant scoped to that specific component handle.
Because it’s scoped, identical property names never clash.
It doesn’t matter how many Host properties you create, by adding additional IotMadeEasy components —on the embedded hardware each one becomes a unique constant tied to its own component instance.

Re: Please help me change the properties of components

Posted: Wed Jun 25, 2025 6:46 am
by vvvhydr
So it turns out that it is impossible to access the component properties as variables? Only statically write data in the component properties?

Re: Please help me change the properties of components

Posted: Wed Jun 25, 2025 8:02 am
by chipfryer27
Hi

In your original post you wanted IOT-1 to connect to server-1 and IOT-2 to connect to server-2. The IOTMadeEasy components allow for this.

If you want to dynamically change target addresses you can use the NetworkComms component.

Regards

Re: Please help me change the properties of components

Posted: Fri Jun 27, 2025 12:02 pm
by vvvhydr
The described methods did not help. Even dividing into a separate network. Mixing of properties is in progress.
That is why I asked how to change the component itself.

Re: Please help me change the properties of components

Posted: Fri Jun 27, 2025 4:19 pm
by BenR
Hello,

What is your WIFI / Ethernet component layer? Some of these have a channel allowing for multiple concurrent connections but others do not. If you let us know which you're using then I can see if there is a way to bump one of the IoT components to a different channel.