ProcessFunction Action

Process input data using Thingsup IoT Platform.

This provides a way to process input data. User need to provide following parameters.


  • 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 
if(payload.temperature > 40){ 
response["Status"] = "High";
response["Status"] = "Low";

Please note the following points:

  • "payload" object is supplied from Action Trigger like Rules, Action Command etc.

  • Response object will be available as Action Response.

  • Loops are not supported for Performance.

Last updated