- Setup Thing || 2. Create The Skill || 3. Create The Lambda Function || 4. Connect Skill To Lambda & Add IOT Permissions || 5. Webapp-Thing
Amazon AWS IoT, or Internet of Things, is a set of services to interact with physical things. A Thing may be a motor, a fan, a robot, etc.
You can start by creating a virtual Thing within AWS that can be controlled by your Lambda code. Later, you could configure a physical thing, such as an Intel Edison Arduino device, to connect to the IOT network (using certificates) and receive updates to stay in sync with the virtual Thing. The virtual Thing is known as a "thing shadow". Read more on the AWS IOT Thing Shadow Guide.
Follow these three steps to build a skill that can update an IOT thing. Step 3 has you configure a web browser page in place of a real thing. Once configured, the page will load images of the city you ask for.
- Part 1: setup-thing
- Part 2: update-shadow (steps 2 through 4)
- Part 3: webapp-thing
When you setup a virtual Thing in a particular region, you will be given the name of an endpoint. Together with the Thing name and the name of your region, you can uniquely describe your thing. Both the back-end (Skill Lambda function) and front end (Device or web app) will point to this thing to exchange data.
Example Configuration:
var config = {};
config.IOT_BROKER_ENDPOINT = "a2eshrcp6u0000.iot.us-east-1.amazonaws.com"; // also called the REST API endpoint
config.IOT_BROKER_REGION = "us-east-1"; // corresponds to the N.Virginia Region. Use ```eu-west-1``` instead for the Ireland region
config.IOT_THING_NAME = "thing1";
To get started, go to Step 1.
Back to the Home Page