Resources

Renesas IoT Sandbox Documentation

Built-ins

These built-in helper functions are provided for convenience.


Import

There is no import line needed to use this library and its functions.


Functions


log

Usage: log(message)

Log messages in Debug logging tool. To find out more about using the Debug tool, view the Workflow Studio Documentation. Note: there is a 100 print line limit.

  • Credit cost: 0
  • Parameters:
    • message: str unicode message string to be logged
  • Returns: None
  • Example:
    • Sample Code:
      if number > 3:
          log("Number is greater than 3")
      else:
          log("Number is less than or equal to 3")



escape

Usage: escape()

Stop processing the current module without producing outputs.

  • Credit cost: 0
  • Parameters: None
  • Returns: None
  • Example:
    • Sample Code:
      if variable is None:
          escape()



Sample Code


log("hello world")
escape()

IONode.set_output('out1', {'value':'execution never reaches here'})

Getting Started
User Roles & Permissions
Streams, Tags, & Data Types
Dashboard Widgets
API
Workflow Studio
Workflow Libraries
Metering
Special Characters
Third Party Integration
Mobile
API Explorer

Built-ins

These built-in helper functions are provided for convenience.


Import

There is no import line needed to use this library and its functions.


Functions


log

Usage: log(message)

Log messages in Debug logging tool. To find out more about using the Debug tool, view the Workflow Studio Documentation. Note: there is a 100 print line limit.

  • Credit cost: 0
  • Parameters:
    • message: str unicode message string to be logged
  • Returns: None
  • Example:
    • Sample Code:
      if number > 3:
          log("Number is greater than 3")
      else:
          log("Number is less than or equal to 3")



escape

Usage: escape()

Stop processing the current module without producing outputs.

  • Credit cost: 0
  • Parameters: None
  • Returns: None
  • Example:
    • Sample Code:
      if variable is None:
          escape()



Sample Code


log("hello world")
escape()

IONode.set_output('out1', {'value':'execution never reaches here'})