Hello,
I am having an issue when I try to sync a boolean value to another Thing.
The first sync I do, it works fine but, then, if I try to sync the same boolean variable to another Thing, the first one gets "disconnected" and it does not work anymore.
Example, I want to act when on "Thing1" a "pump" value goes high and I want it to set ON a value on the "Thing2", This works fine.
After that I also I want to act when on "Thing1" a "pump" value goes high and I want it to set ON a value also on "Thing3", this works, but then Thing2 sync value gets disconnected and it does not work anymore.
Does anybody else had the same issue ?
Or is it a known feature ?
I mean exactly that, it gets disconnected.
So, if you look at the setup in the "Cloud variables" you will not see the two arrows anymore, those indicating that that variable is synced with another one. That symbol disappears and the variable is not synced any longer.
I believe that the problem may be due to the fact that this sync is a one-to-one only, and not a one-to-many.
Hello,
Thank you for your help. I have found a solution bypassing the issue.
I have created more variables and, inside the sketch, I have ensured they are all set to the same value, so they are a duplicate of the same value.
I have then been able to sync one variable to one Arduino and the second variable to the other Arduino. This way I have managed to get the result that I wanted.
The sketches are still in the early stage of designing, as I am doing a number of testing, so you will see some "strange" items and lines in there; they are there for the scope of testing
They are:
Arduino 1 - 0a718bc0-caa4-4d82-afd0-596cf7e41cbe
Arduino 2 - 688c38fe-ffb2-4377-a62f-6b12831f3ffe
Arduino 3 - 11bf24cd-282d-4f72-9050-f2b0279190e7
The final project will have 6 Arduino, probably they will all be Nano 33 IOT, currently Arduino 2 is a MCU board, but I am trying to port the sketch to the Nano board; hence I have two of the same, but the MCU is going to disappear soon.
The setup is designed to activate some circulating water pump, for water heating, only when someone is actually using the hot water, and turning pumps off, when nobody is using hot water.
The challenge is due to the fact that the units are far apart from one another, and WiFi is the best way to get units to communicate among themselves.
Finally, there will be displays in all of the units, to keep an eye upon what is going on, with the system, at all times.
I post this short summary to help anyone that may face my same issues.
The "Sync with other Things" it appears to be a one-to-one feature only.
There appears to be no provision to sync one-to-many; albeit it is never specified clearly in the documentation that I fount on the subject and the "Dashboard" does allow to show the same value, from the same Thing in as many instances as you require, with apparently no limit; thus providing the false impression that a one-to-many may be available.
To overcome this limit, should you require a one to many feature, you may try to duplicate the required "variable" value so that you can then sync each duplicate to a different Thing.
If you tried to sync the same variable to a third Thing, the system will act erratically, most probably it will disengage the sync from the first Thing, and leave it "stranded", but it will not inform you of any of this.
the synced value must be "Read and Write" in at least one of the Things, otherwise the value will not be "transported" into the relevant Thing.
In case you are reading a value from one Thing (let's call it Arduino 1), to use that value in the code on another Thing (let's call it Arduino2), you are required to let the synced value to be "read and write" in Arduino2, or else the value will never change in the destination Thing of Arduino2 and any change of value from Arduino1 will be ignored by Arduino2.
I confirm the second point about "Read and Write", if a variable is set as "Read-only", its updates will not be notified to other variables.
Instead, I don't understand the problem of syncing more variables.
You can create three things and for each thing, you can create a variable (e.g. integer) and then sync the first variable to the second and third one. Then, you have to manipulate one of them in the corresponding sketch of a thing so that the other variables value will be changed automatically.