Explore Plans
Mobile menu Close menu
Smarthon IoT (micro:bit)

Control Command

You can use control command to control the IoT device. (e.g. turn on/off the light, control light intensity, control 180 servo, change variable for settings, set custom function)

Developer info

API endpoint slug
smarthon.controlcmd
Filter code method
Smarthon.controlcmd.skip(string?: reason)
Runtime method
runAction("smarthon.controlcmd", {})

Action fields

Device Text input > Title

Label
Device ID
Slug
device_id
Required
true
Can have default value
true
Filter code method
Smarthon.controlcmd.setDevice(string: device_id)

Command Text input > Title

Label
Command
Slug
command
Required
true
Can have default value
true
Filter code method
Smarthon.controlcmd.setCommand(string: command)