ESP-01S Stateless Button not working #2100
Closed
shengweitw
started this conversation in
MEPLHAA Scripts
Replies: 1 comment 3 replies
-
Try this:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the old version, I used the following JSON, which worked.
{"c":{"o":0},"a":[{"t":3,"b":[],"s":0,"f0":[{"g":0,"t":1,"p":1}],"f1":[{"g":0,"t":2,"p":1}],"f2":[{"g":0,"t":3,"p":1}]},{"t":3,"b":[],"s":0,"f0":[{"g":2,"t":1,"p":1}],"f1":[{"g":2,"t":2,"p":1}],"f2":[{"g":2,"t":3,"p":1}]}]}
I use the following code, the first button works fine, but the second button doesn't respond?
Can someone help me?
From the beginning, I use the following JSON
{"c":{"io":[[[0],6],[[2],6]],"b":[[0,5],[2,5]]},"a":[{"t":3,"f0":[[0,1]],"f1":[[0,2]],"f2":[[0,3]]},{"t":3,"f0":[[2,1]],"f1":[[2,2]],"f2":[[2,3]]}]}
Then I tried using the following
{"c":{"io":[[[0,2],6]],"b":[[0,5],[2,5]]},"a":[{"t":3,"f0":[[0,1]],"f1":[[0,2]],"f2":[[0,3]]},{"t":3,"f0":[[2,1]],"f1":[[2,2]],"f2":[[2,3]]}]}
{"c":{"io":[[[0,2],6]],"b":[[[0,2],5]]},"a":[{"t":3,"f0":[[0,1]],"f1":[[0,2]],"f2":[[0,3]]},{"t":3,"f0":[[2,1]],"f1":[[2,2]],"f2":[[2,3]]}]}
But it doesn't work. I compared it with Wiki example for Stateless Button, Can someone tell me where I'm going wrong?
{"c":{"io":[[[0],6]],"b":[[0,5]]},"a":[{"t":3,"f0":[[0,1]],"f1":[[0,2]],"f2":[[0,3]]}]}
Beta Was this translation helpful? Give feedback.
All reactions