How to connect NodeMCU ESP8266 with AWS IoT Core using Arduino IDE & MQTT

Опубликовано: 13 Октябрь 2019
на канале: Electronics Innovation
41,495
824

In this tutorial, I will tell you How to connect NodeMCU ESP8266 with AWS IoT Core using Arduino IDE and MQTT Protocol. In this process, we will see how to create a thing in AWS IoT core, generating certificates and policy, How all AWS IoT core credentials are converted to .der format and directly downloaded into the NodeMCU ESP8266 SPIFFS file system. We will be developing a sketch that will marry ESP8266 and AWS IoT Core using MQTT Protocol.
this sketch requires the certificate files to be uploaded to the device’s flash rather than storing them inline with the script. This allows the same script to be used by multiple devices, that each read the required files from their internal flash storage.

Link: https://electronicsinnovation.com/how...


Introduction to AWS IoT Core:

Internet of Things (IoT) is being integrated with almost every device nowadays. There is a number of hardware and software IoT platforms are available in the market for building IoT based application. In my previous article, I have explained how to interface DHT22 with NodeMCU and post the Temperature and Humidity to the Thingspeak webserver. Likewise, we can interface sensors to the hardware development kits like ESP32, ESP8266, Raspberry Pi, Particleboards( Aargon, Boron, Xenon) and post data to the clouds like Thingspeak, Ubidots, AWS IoT Core, Microsoft Azure.

Amazon is not only in e-commerce but also focusing on IoT and providing cloud-based service named as AWS IoT. Here, AWS IOT stands for Amazon Web Service Internet of Things. This service allows us to connect our devices to the internet for processing, operating and exchanging data securely. Along with AWS IoT, the Amazon Web Services also provides tons of other features like virtual machine deployment, web-hosting, etc.

========================================================
Requirements for this Tutorial :
NodeMCU Buy from Amazon:https://amzn.to/2L251pi
Data Cable Buy from Amazon: https://amzn.to/33W4Y7e
An active account on Amazon Web Services(AWS).
Arduino IDE installed on your computer with ESP8266 board configuration

========================================================
Steps involved in this tutorial:
If you want to skip any of the steps please click on the particular time
1.Creating a Thing in the AWS, generating a certificate and attaching a policy to it. 1:30
2.Converting AWS credential(Certificate, Private Key, Root CA) from .pem to .der format 3:33
3.Installing ESP8266 sketch data upload tool in Arduino IDE 5:46
4.Arduino sketch and modifications according to the thing. 7:14
5.Uploading AWS certificates & code to the NodeMCU ESP8266 9:54
6.Testing/Subscription of thing on Amazon Web Services(AWS). 11:44
7.Results& Data Logging. 12:16

========================================================
Subscribe to Electronics Innovation
http://bit.ly/ElectronicsInnovation

Visit Electronics Innovation.com for more Tutorials, Tips, Projects and How It Works videos:
http://electronicsinnovation.com/

Like my page on Facebook:   / electroniczinnovation  

~-~~-~~~-~~-~
Please watch: "I AM IRON MAN | DIY Arc Reactor"
   • how to make iron man arc reactor | di...  
~-~~-~~~-~~-~


Смотрите видео How to connect NodeMCU ESP8266 with AWS IoT Core using Arduino IDE & MQTT онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Electronics Innovation 13 Октябрь 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 41,495 раз и оно понравилось 824 людям.