I’ve a project that will control 4 arduino (same authentification token - different virtual pins).
It has a total of 29 widgets, and receive a low rate of data (less than 10/minute).
At the beginning, only one device was used and all the widgets worked fine, excepted the buttons widgets that failed sometimes to send the command. I had to repeat the push and it finally worked.
Now I’ve connected a second arduino and it seems this occasional problem occurs more often (perhaps one time on 4 push).
The major problem is that the button is in “switch mode”, and so in case of failure its displayed state doesn’t reflect anymore the real state on the hardware.
Is it possible to improve the realibility of theses button commands?
(Or if it’s not possible, how can I get the displayed state of the buttons synchronized on the appli following the real state on the hardware.)
PS: only one common widget (terminal V6) is used for all the devices. And sometimes it appears empty and I’ve to logout/login the app to refresh it. Is it not a problem to use the same virtualpin on multiple devices?
/below my code if it could help…