Azure Code Samples

Learn to interact with Azure services through code

24 code samples match your filter

IoT Hub SparkFun ESP8266 Thing-Dev Client application

Application collects weather data from a DHT22 sensor and sends it to IoT hub, also take actions according to cloud-to-device message.

  • Azure IoT Hub
xshi by Xin Shi,
Last updated: 8/23/2017

IoT Hub Raspberry Pi 3 Client application

Application collects weather data from a BME280 sensor and sends it to IoT hub, also take actions according to cloud-to-device message, device management.

  • Azure IoT Hub
  • C
shizn by Xin Shi,
Last updated: 2/19/2019

How to get started for using IoT Hub REST API in Python

This Python sample app is used by the getting started content to demonstrate how easy it is to create an IoTHub Instance on Azure portal, and register a new device for the IoTHub, then send a message from device (simulated device app) to cloud.

  • Azure IoT Hub
  • Python
msonecode by One Code,
Last updated: 3/28/2017

Use device lifecycle and twins changes to replicate device data to an external store

Demonstrate the use of device lifecycle and twin change notifications to replicate device identities and twin properties to an external store - specifically an Azure Cosmos Graph DB

  • Azure IoT Hub
  • .NET
ailn by Andrey Ilnitsky,
Last updated: 10/20/2017

Get Started with Microsoft Azure IoT Starter Kit - Raspberry Pi2 and Pi3

Get started with the Raspberry Pi Azure IoT Starter Kit

  • Azure IoT Hub
  • Azure Stream Analytics
  • Event Hubs
  • Azure Cosmos DB
  • C
hegate by Hector Garcia Tellado,
Last updated: 11/16/2016

iot hub c intel nuc gateway getting started

The repo contains configuration files and scripts that automate the execution of gateway SDK BLE sample application.

  • Azure IoT Hub
  • C
xshi by Xin Shi,
Last updated: 8/23/2017

Azure IoT Hub ping

Simple solution to test a device's connectivity to Azure IoT Hub: Device sends a message and receives it back.

  • Azure IoT Hub
  • Azure Functions
olivierbloch by Olivier Bloch,
Last updated: 4/9/2017

Tweet vibration anomalies detected by Azure IoT services on data from an Intel Edison running Node.js

Simple IoT project using Azure IoT Hub and showing a device running node to send telemetry data and that is analyzed by Azure IoT services to detect anomalies

  • Azure IoT Hub
  • Azure Stream Analytics
  • Event Hubs
  • Node.js
  • Javascript
olivierbloch by Olivier Bloch,
Last updated: 7/12/2017

IoT Hub Intel Edison Client application

Application collects weather data from a Grove temperature sensor and sends it to IoT hub, also take actions according to cloud-to-device message, device management.

  • Azure IoT Hub
  • Node.js
xshi by Xin Shi,
Last updated: 8/22/2017

LwM2M 1.0 to Azure IoT Hub Bridge Sample

A bridge that enables OMA LWM2M devices to interact with cloud back-end applications through Azure IoT Hub device twin and methods.

  • Azure IoT Hub
juanjperez by Juan Perez,
Last updated: 2/8/2017

Connect iOS, Android and Windows devices to Azure IoT Suite Remote Monitoring using Xamarin

Xamarin application to connect mobile devices to Azure IoT Suite Remote Monitoring preconfigured solution

  • Azure IoT Hub
  • Xamarin
olivierbloch by Olivier Bloch,
Last updated: 9/30/2016

IoT Hub Feather HUZZAH Client application

Application collects weather data from a DHT22 sensor and sends it to IoT hub, also take actions according to cloud-to-device message.

  • Azure IoT Hub
xshi by Xin Shi,
Last updated: 11/6/2017

azure iot gateway ble data convertor module

A customized gateway module for Intel NUC gateway kit

  • Azure IoT Hub
  • C
shizn by Xin Shi,
Last updated: 8/25/2017

Connect your Microsoft Azure IoT Raspberry Pi 3 Starter Kit to the remote monitoring solution

Get started with the Raspberry Pi Azure IoT Starter Kit

  • Azure IoT Hub
  • C
azure-samples by Azure Samples,
Last updated: 2/1/2019

Azure IoT Samples for iOS Platform

azure-iot-samples-ios provides a set of easy-to-understand, continuously-tested samples for using Azure IoT Hub via Azure/azure-iot-sdk-c.

  • Azure IoT Hub
  • iOS
azure-samples by Azure Samples,
Last updated: 4/19/2018

Auto-scale your Azure IoT Hub

Monitor Azure IoT Hub usage and auto-scale it when necessary

  • Azure IoT Hub
  • .NET
stevebus by Steve Busby,
Last updated: 12/17/2017

How To Extend Azure IoT Hub Twins via Azure Blob Storage

This sample demonstrates how to extend Azure IoT Hub Twins via Azure Blob Storage. Concretely, a solution can benefit from this approach if the twin properties either exceed the current limit or refer to binary content that cannot be easily represented in the twin's JSON payload.

  • Azure IoT Hub
  • Node.js
  • Python
  • .NET
druttka by David Ruttka,
Last updated: 11/30/2018

MyDriving - An Azure IOT and Mobile Sample Application

Building IoT or Mobile solutions are fun and exciting. This year for Build, we wanted to show the amazing scenarios that can come together when these two are combined. So, we went and developed a sample application. MyDriving uses a wide range of Azure services to process and analyze car telemetry data for both real-time insights and long-term patterns and trends. The following features are supported in the current version of the mobile app.

  • Azure IoT Hub
  • App Service
  • Data Factory
  • HDInsight
  • HockeyApp
  • Key Vault
  • Machine Learning Studio
  • Azure SQL Database
  • Storage Accounts
  • Azure Stream Analytics
  • Azure DevOps
  • .NET
  • iOS
  • Android
  • Xamarin
alinapopa by Alina Popa,
Last updated: 3/13/2019