Some info on how to get started on NodeMCU & AWS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md

README.md

How to get started on AWS IoT with NodeMCU for less than 5 euros

  • Start with the NodeMCU unplugged

  • Download NodeMCU Driver CH341SER_yourOS and install it

  • Connect the NodeMCU board to the USB port

ls /dev/tty* should show something like /dev/tty.wchusbserial1420

  • If you want to play around with LUA, download ESPlorer

  • Download Arduino IDE

  • Configure your Arduino IDE to support ESP8266

File>Preference and copy the URL below to Additional Board Manager URLs http://arduino.esp8266.com/stable/package_esp8266com_index.json

Go to Tools > Boards > Board Manager. Look for esp8266 and hit install. Select NodeMCU 1.0 (ESP-12E Module)

  • Install AWS SDK as a Arduino Library

  • Install your sensor library if any (in our case a capacitive sensor)

  • Download aws-esp-ino.zip and unzip it to your Arduino folder

  • Log in to your AWS Account and add a Thing. Call your thing ESPNODE

  • Edit keys.cpp and fill in your AWS Account and WIFI settings

  • Compile and run your Arduino sketch

  • Create a new Lambda

Rule for the trigger : SELECT * FROM '$aws/things/ESPNODE/shadow/update/accepted' WHERE state.reported.clic = 1