Creating an UbiFunction
Step-by-step guide on how to create an UbiFunction
Last updated
Step-by-step guide on how to create an UbiFunction
Last updated
In your Ubidots account, go to the "Devices" tab and select "Functions".
Click the "+" icon to create your first UbiFunction:
Give the function a name.
The name of your function will become part of its URL. If you rename the function, the URL will keep the same.
Type the name for this ubifunction in the corresponding field:
Scroll down to the Runtime option and select the runtime that you require:
scroll down to the HTTP Method section and select the HTTP method that this function will allow:
Other configuration options:
Token: select a token from your account to use in your function code.
Environmental variables: select one or more environmental variables from the Global Properties of your account to use in the function code.
Max. execution time: the maximum time your function takes to execute all the code.
Time-based trigger: create a cron UbiFunction based on a time interval or a Crontab expression.
Raw function: HTTP headers and URL paths will be passed to the function. "Content-Type" can be different than "application/json". Custom response codes can be returned from the function.
CORS Policy: Enables calling this function from web browser's URLs different than parse.ubidots.com.
Scroll down to the bottom of the page and hit the SAVE button to save these settings.