singleButton function is a user defined function?

Hey devlopers/guides
I wanted to know whether the : singleButton function is a user defined function integrated with the bolt cloud? I could not find any documentation of the function by the said name in the Java script functions?

We used this function to control LED on/off , with 2 lines of code in the tutorial " Controlling LED using Javascript".

Thanks!
Alark

Hi @alarkthakkarvnit,

You can find the documentation here https://docs.boltiot.com/docs/controlling-output-devices-glowing-an-led

And you can find the function definition of singleButton here https://cloud.boltiot.com/static/js/ui-control.js

Do let me know in case you need further assistance.

1 Like