Samsung button to trigger web api


#1

1) Give a description of the problem
I have a Samsung button and I want to click it once and start a web api url.

2) What is the expected behavior?
click once and fire up a url, twice and use another url and held for a 3rd url.

3) What is happening/not happening?
Nothing, I don’t know how to start

**4) Post a Green Snapshot of the piston![image|45x37]
Don’t know how to start, very poor English.

5) Attach any logs (From ST IDE and by turning logging level to Full)

Thank you


#2

“Green snapshot” is the camera icon when you are looking at the piston you have created.

image

But it sounds like you haven’t created a piston yet. Perhaps you need to start here –


#3

Thank you, Im going to try.


#4

This is what I have… so lets say I want as a statement to trigger a url or web api… what is the procedure?

Thank you

//
/* webCoRE Piston #1 button api */
/
/
/* Author : coque /
/
Created : 16/4/2019 13:22:07 /
/
Modified : 16/4/2019 13:22:07 /
/
Build : 0 /
/
UI version : v0.3.10a.20190223 */
/**************************************************************/

execute
if
boton oficina 1’s button gets pushed

  • add a new condition
    then
  • add a new statement
    else
  • add a new statement
    end if;
  • add a new statement
    end execute;

#5

Under the then, create a new Task, default device would be Location. Add Task and then use the Make a web request as the task.


#6

Thank you so much!