Quick start
Complete these steps to send your first command:
-
Prerequisites - Ensure you are onboarded to IoT Core, a device connected to IoT Core, IAM permissions for Commands API operations, and an MQTT client library installed on your device.
-
Create a command - Define a command with a static payload, or a payload template specifying device actions. See Create a command resource.
-
Identify your device - Register your device as an IoT thing or note its MQTT client ID. See Target device considerations.
-
Configure permissions - Set up IAM policies allowing your device to receive commands and publish responses.
-
Subscribe to topics - Configure your device to subscribe to commands request and response topics. See Choose target device for your commands and subscribe to MQTT topics.
-
Execute the command - Start the command execution on your target device. See Start a command execution.
Common use cases:
-
Remote diagnostics - Retrieve logs, run diagnostics, check device health
-
Configuration updates - Change settings, update parameters, toggle features
-
Device control - Lock/unlock, power on/off, mode changes