1

Topic: Writing to switches etc.

Imagine a switch and an led.  When the switch is on i turn the led on.  Now my sketch wants to turn that feature on/off independent of the switch state.  I can turn the led on/off, but i can not change the state of the switch to reflect the current condition.

I think it is important to be able to write a switches state.

2

Re: Writing to switches etc.

Important, yes, possible, no !

Shortcomings of the app

Everything works with smoke - if you let it out, things stop working....

3

Re: Writing to switches etc.

Daba wrote:

Important, yes, possible, no !

Shortcomings of the app

So you mean that it is not possible for the app to be modified to do this?

4 (edited by Gillas26 2020-06-17 22:06:59)

Re: Writing to switches etc.

Really, why exactly is it not possible when the the state of an LED can be written to the app?
I was really hoping remotexy would allow me remote control of my device but this is a show stopper so will probably have to cludge together something nasty with a telnet session :-(

5 (edited by Guillaume 2020-06-18 09:27:47)

Re: Writing to switches etc.

Welcome Gillas26

It is now possible to do that with latest library and app, set value of the control then call function RemoteXY_sendInputVariables()

6

Re: Writing to switches etc.

Fantastic, tried it out and took some time to write some code that didn't just make the switch loop (obviously trying to set and unset from two different places) and I can now toggle my device on and off from the app and the Arduino and also know on the app what state it is in.

Thank you