mariuszb wrote:My notes to simple-btn:
1. delay now is only up to 1 sec - can it be up to 5 sek ?
The function can be used if you want to make sure that the button has not been pressed accidentally - eg. Need to keep at least 3 seconds to activate something
Remember, IoT Manager send control packet always after button pressed.
And then, can be send periodicaly next packets every DELAY ms (until button in pressed state)
This time may be very long. And 5sec too.
You can count this packets on device. For example DELAY:200, we want action on device after 5sec, then we can expect 25 packets (5sec*5msg/sec). No problem for "5sec pressed" confirmation.
mariuszb wrote:2. Widget can't accept any status data...maybe it could ?
If would, it could be used this for example as status icons for something..."control" not be used by user, user only send "status" (simulating press) to change color etc.
Delay set to 0 by user to avoid unnecessary sending many massages by simle-btn.
You adeas? Change button fill color (text color) after status arrived? Forever? Temporary? How long? Tell me about this and I'm make this widget extension in next version.