Skip to Content
Learning AWS IoT
book

Learning AWS IoT

by Agus Kurniawan
January 2018
Intermediate to advanced
278 pages
5h 13m
English
Packt Publishing
Content preview from Learning AWS IoT

Developing local AWS Lambda 

We use Node.js to develop local AWS Lambda. Firstly, we write the Node.js program with the Raspberry Pi environment. Open the Raspberry Pi Terminal and create a folder called blinking. We will use the node-rpio library to access the Raspberry Pi GPIO.  This library can be found at https://github.com/jperkin/node-rpio.

  1. Navigate to the blinking folder from the Terminal. Then, we install the node-rpio library by typing the following command:
$ npm install rpio
  1. You also need to configure AWS Lambda to enable working with gpiomem. You can do that by typing the following command:
$ sudo cat >/etc/udev/rules.d/20-gpiomem.rules <<EOFSUBSYSTEM=="bcm2835-gpiomem", KERNEL=="gpiomem", GROUP="gpio", MODE="0660"EOF
  1. Now, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn AWS Serverless Computing

Learn AWS Serverless Computing

Scott Patterson

Publisher Resources

ISBN: 9781788396110Supplemental Content