#Lab 2 - IoT with Linux and Node.js
In this lab, you begin by learning the basics of working with Raspberry Pi 3 that's running Raspbian. You then learn how to seamlessly connect your devices to the cloud by using Azure IoT Hub.
###Configure your device and get the tools In this lab you will Configure Raspberry Pi 3 for first-time use and install Raspbian. Raspbian is a free operating system that is optimized for the Raspberry Pi hardware. Download the tools and software to build and deploy your first application for Raspberry Pi 3. Estimated time to complete: 50-minutes.
###Lab 2.1: Create and deploy the blink application! In this lab you will clone the sample Node.js blink application from GitHub, and use gulp to deploy this application to your Raspberry Pi 3 board. This sample application blinks the LED connected to the board every two seconds.
Estimated time to complete: 5-minutes.
###Lab 2.2: Create your IoT hub and register device In this lab you will provision your Azure IoT hub, and create a device in the IoT hub.
Estimated time to complete: 20-minutes.
###Lab 2.3: Send device-to-cloud messages In this lab you will send messages from Pi to your IoT hub. You will also create an Azure function app that gets incoming messages from your IoT hub and writes them to Azure Table storage.
Estimated time to complete: 25-minutes.
###Lab 2.4: Send cloud-to-device messages In this lab you will send messages from your Azure IoT hub to Raspberry Pi 3. The messages control the on and off behavior of the LED that is connected to Pi. A sample application is prepared for you to achieve this task.
Estimated time to complete: 20-minutes.
###Lab 2.5: Change the on and off behavior of the LED In this lab you will customize the messages to change the LED’s on and off behavior.
Estimated time to complete: 10-minutes.
Back to IoT Labs homepage