IoT Workshop

Joanna Lamch

IoT Workshop

IoT solutions on Azure

Excersises

I:🌸 Create IoT Hub

  1. Go to Azure Portal
  2. Create IoT Hub
    • preferable S1 tier
    • 1 unit
    • 4 partitions
  3. Create device
    • IoT Devices -> New
    • with symetric key
  4. Go to your device and open connection strings, we will need it later
    • IoT Devices -> your device -> Primary Connection String

I:🌸 VS Code for IoT Hub

  1. In VS Code call Command Palette and call Azure: Sign in
  2. In Explorer at the bottom go to Azure IoT Hub
    • select More actions…
    • Select IoT Hub
  3. Select Devices
    • select your device
    • Start monitoring build-in endpoints
    • observe messages in Output window

I:🌸 VS Code Simulate device

  1. Select Devices
    • select your device
    • Send D2C Messages
    • set your text and send
  2. While sending look into Output windows

II:🥀 Arduino create project

  1. Create new project
    • Shift + Ctrl + P => Command Palette
    • Azure IoT Device Workbench: Create Project
    • choose project name
    • close all instances of VS Code
    • open again ale wait about minute

II:🥀 Arduino fun

  1. Go to documentation and choose what you want to code

III:💮 IoT DevKit

  1. Update firmware
  2. Set WIFI connection - Access Point mode
    • => Hold B, press Reset - still holding B just press and release Reset still holding B, release B
  3. Connect to you DevKit access point
  4. Configure WIFI at 192.168.0.1
  5. See sensors reading => Press B

IV:🌹 Getting started

  1. Upload getting started program Solution link
  2. Configure getting started
    • => Hold B, press Reset - still holding B just press and release Reset still holding B,
    • => release B
  3. Connect to you DevKit access point
  4. Configure at 192.168.0.1
    • set WIFI
    • set connection string from recent demo
    • restart device

IV:🌹 Getting started - Cold Path

  1. Go to Azure portal
    • go to Message routing
    • Add
    • on Add Route page Add endpoint, storage
    • fill name, choose frequency, choose JSON and pick container
    • create or choose storage account and container
  2. Check storage
    • body is encripted with Base64

V:🌺 Hot Path

not ready yet