ProcessFunction Action
Process input data using Thingsup IoT Platform.
This provides a way to process input data. User need to provide following parameters.
Function
Javascript code to process input data.
"payload" and "response" object are available in this code.
Write your custom processing logic or build your Mock APIs with predefined responses.
//Example 1
response = payload;
//Reply with same payload
or
if(payload.temperature > 40){
response["Status"] = "High";
}
else{
response["Status"] = "Low";
}

Please note the following points:
Last updated
Was this helpful?