Azure Sphere is a secure IoT solution from Microsoft consisting of a whole ecosystem of components. These include custom hardware with extended security features, a secure operating system and a secure cloud service for device management and firmware updates.
In this repository you can find examples that demonstrate how to write software for the Azure Sphere hardware using the Seeed Studio MT3620 dev kit and the Seeed Studio Grove Starter Kit for Azure Sphere MT3620.
To get started you can find a general description of Azure Sphere in the Azure Sphere documentation. For instructions on how to setup a development environment and how to claim an Azure Sphere device, refer to the quick start tutorial on Azure Docs.
Important: Be aware that claiming a device is a one-time operation. Once a device has been claimed by an Azure Sphere tenant, it cannot be removed or reclaimed by a different tenant. This is a security feature that prohibits externals who get physical access to an Azure Sphere device to take over its ownership.
This example shows a simple temperature monitoring application which is also able to control an external device (like a fan) by switching on and off a relay depending on a configurable temperature threshold. A display shows the current temperature readings and the temperature threshold which can be configured via a connected potentiometer during runtime. Once the temperature surpasses the threshold, the relay is switched on. It is switched off once the temperature falls below the threshold.
The source code and an extended description of the example can be found in the folder Samples/TemperatureMonitor.
Uses POSIX threads instead of event polling.
The source code and an extended description of the example can be found in the folder Samples/MultiThreading.
The example shows how to connect to the Azure IoT Hub and control the LEDs of the MT3620 Dev Kit via the IoT Hub Device Twin. It also shows the usage of a direct message to restart the device and how to react to general messages.
The source code and an extended description of the example can be found in the folder Samples/IotHub.