You can access the features of the AWS IoT Core - control plane by using the AWS CLI, the AWS SDK for your preferred language, or by calling the REST API directly. We recommend using the AWS CLI or an AWS SDK to interact with AWS IoT Core because they incorporate the best practices for calling AWS services. Calling the REST APIs directly is an option, but you must provide the necessary security credentials that enable access to the API.
NoteIoT devices should use AWS IoT Device SDKs. The Device SDKs are optimized for use on devices, support MQTT communication with AWS IoT, and support the AWS IoT APIs most used by devices. For more information about the Device SDKs and the features they provide, see AWS IoT Device SDKs.
Mobile devices should use AWS Mobile SDKs. The Mobile SDKs provide support for AWS IoT APIs, MQTT device communications, and the APIs of other AWS services on mobile devices. For more information about the Mobile SDKs and the features they provide, see AWS Mobile SDKs.
You can use AWS Amplify tools and resources in web and mobile applications to connect more easily to AWS IoT Core. For more information about connecting to AWS IoT Core by using Amplify, see PubSub in the Amplify documentation.
The following sections describe the tools and SDKs that you can use to develop and interact with AWS IoT and other AWS services. For the complete list of AWS tools and development kits that are available to build and manage apps on AWS, see Tools to Build on AWS.
AWS CLI for AWS IoT CoreThe AWS CLI provides command-line access to AWS APIs.
For information about how to install the AWS CLI, see Installing the AWS CLI.
The AWS CLI uses credentials from your AWS account.
For information about the AWS CLI commands for these AWS IoT Core services, see:
For tools to manage AWS services and resources in the PowerShell scripting environment, see AWS Tools for PowerShell.
AWS SDKsWith AWS SDKs, your apps and compatible devices can call AWS IoT APIs and the APIs of other AWS services. This section provides links to the AWS SDKs and to the API reference documentation for the APIs of the AWS IoT Core services.
Follow the instructions in Getting Started Using the AWS SDK for C++
These instructions describe how to:
Install and build the SDK from source files
Provide credentials to use the SDK with your AWS account
Initialize and shutdown the SDK in your app or service
Create a CMake project to build your app or service
Create and run a sample app. For sample apps that use the AWS SDK for C++, see AWS SDK for C++ Code Examples.
Follow the instructions in Getting Started with the AWS SDK for Go
These instructions describe how to:
Install the AWS SDK for Go
Get access keys for the SDK to access your AWS account
Import packages into the source code of our apps or services
Create and run a sample app. For sample apps that use the AWS SDK for Go, see AWS SDK for Go Code Examples.
Follow the instructions in Setting Up the AWS SDK for JavaScript. These instructions apply to using the AWS SDK for JavaScript in the browser and with Node.JS. Make sure you follow the directions that apply to your installation.
These instructions describe how to:
Check for the prerequisites
Install the SDK for JavaScript
Load the SDK for JavaScript
Create and run a sample app to get started with the SDK as the getting started option for your environment describes.
Follow the instructions in the AWS SDK for Python (Boto3) Quickstart
These instructions describe how to:
Install the SDK
Configure the SDK
Use the SDK in your code
Create and run a sample program that uses the AWS SDK for Python (Boto3)
This program displays the account's currently configured logging options. After you install the SDK and configure it for your account, you should be able to run this program.
import boto3
import json
# initialize client
iot = boto3.client('iot')
# get current logging levels, format them as JSON, and write them to stdout
response = iot.get_v2_logging_options()
print(json.dumps(response, indent=4))
For more information about the function used in this example, see Configure AWS IoT logging.
The AWS Mobile SDKs provide mobile app developers platform-specific support for the APIs of the AWS IoT Core services, IoT device communication using MQTT, and the APIs of other AWS services.
AWS Mobile SDK for Android
The AWS Mobile SDK for Android contains a library, samples, and documentation for developers to build connected mobile applications using AWS. This SDK also includes support for MQTT device communications and calling the APIs of the AWS IoT Core services. For more information, see the following:
AWS Mobile SDK for iOS
The AWS Mobile SDK for iOS is an open-source software development kit, distributed under an Apache Open Source license. The SDK for iOS provides a library, code samples, and documentation to help developers build connected mobile applications using AWS. This SDK also includes support for MQTT device communications and calling the APIs of the AWS IoT Core services. For more information, see the following:
The REST APIs of the AWS IoT Core services can be called directly by using HTTP requests.
The service endpoints that expose the REST APIs of the AWS IoT Core services vary by Region and are listed in AWS IoT Core Endpoints and Quotas. You must use the endpoint for the Region that has the AWS IoT resources that you want to access, because AWS IoT resources are Region specific.
The REST APIs of the AWS IoT Core services use AWS IAM credentials for authentication. For more information, see Signing AWS API requests in the AWS General Reference.
For information about the specific functions provided by the REST APIs of the AWS IoT Core services, see:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4