Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning AWS IoT

You're reading from  Learning AWS IoT

Product type Book
Published in Jan 2018
Publisher Packt
ISBN-13 9781788396110
Pages 278 pages
Edition 1st Edition
Languages
Author (1):
Agus Kurniawan Agus Kurniawan
Profile icon Agus Kurniawan

Table of Contents (14) Chapters

Title Page
Packt Upsell
Contributors
Preface
Getting Started with AWS IoT Connecting IoT Devices to AWS IoT Platform Optimizing IoT Computing Using AWS Greengrass Building Local AWS Lambda with AWS Greengrass Expanding IoT Capabilities with AWS IoT Button Visualizing AWS IoT Data Building Predictive Analytics for AWS IoT Securing AWS IoT Other Books You May Enjoy Index

Building IoT projects with AWS Lambda and AWS Greengrass


Integrating AWS Lambda and AWS Greengrass can leverage your IoT business. In this section, we will explore IoT projects to implement AWS Lambda and AWS Greengrass. We will build a simple app to monitor a local resource, such as a sensor.

Accessing local resources

AWS Greengrass can access local resources. This is possible if we use AWS Greengrass version 1.3.0 or later versions. You can configure an AWS Lambda to access specific resources. The following is a list of local resources that you can apply:

  • Folders and files
  • Serial ports
  • USB
  • GPIOs
  • GPUs
  • Cameras

To show you how to work with local resources in the AWS Greengrass Core machine, we will access local GPIO resources. We need an LED that is attached to Raspberry Pi on GPIO 18 (pin 12). You can see this wiring in the following image:

Our aim is to develop a blinking Lambda. This demo will make a blinking LED while the Lambda function is called. The next step is to develop AWS Lambda and then...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}