Explore Plans
Mobile menu Close menu
AT&T M2XAT&T M2X

Send command to device

This Action will send a command to a specific device.

Developer info

API endpoint slug
attm2x.send_command
Filter code method
Attm2x.sendCommand.skip(string?: reason)
Runtime method
runAction("attm2x.send_command", {})

Action fields

Device ID Text input > Other

Label
Which device?
Helper text
The device ID can be found on the Device Details page of your M2X account.
Slug
device_id
Required
true
Can have default value
true
Filter code method
Attm2x.sendCommand.setDeviceId(string: deviceId)

Command name Text input > Other

Label
Command name
Helper text
The name of the command that will be sent to the device.
Slug
command_name
Required
true
Can have default value
true
Filter code method
Attm2x.sendCommand.setCommandName(string: commandName)

Command data Text input > Other

Label
Command data
Helper text
Optional additional data to be sent along with the command (must be a valid JSON string).
Slug
command_data
Required
false
Can have default value
true
Filter code method
Attm2x.sendCommand.setCommandData(string: commandData)