The AzureSphereDevX library and the AzureSphere.Examples are community maintained repositories.
-
Clone the examples.
git clone --recurse-submodules https://github.com/Azure-Sphere-DevX/AzureSphereDevX.Examples.git
-
Run the Update and Build tools. Follow the build tools notes to update and test build all examples.
Visit the DevX library Wiki page to learn more.
The DevX library accelerates your development and will help to improve your developer experience building Azure Sphere applications.
The DevX library addresses many common Azure Sphere scenarios with a focus on:
- IoT Hub messaging
- Avnet IoTConnect messaging
- IoT Hub Device Twins and Direct Methods
- Intercore Messaging
- Event Timers
- GPIO
- UARTS
- PWM
- Web Proxy Configuration
The DevX library will help reduce the amount of code you write and improve readability and long-term application maintenance.
The focus of the Azure Sphere DevX library is the communications and simplification of common scenarios when building Azure Sphere applications.
Be sure to visit the Azure Sphere GenX Code Generator WiKi partner project.
This is an community maintained project and your contribution is welcome and appreciated. Please find the instructions below for adding additional examples to this repo.
- Fork the repo into your GitHub account
- Pull your repo, make sure to pull the submodules:
git clone --recurse-submodules https://github.com/<your gitHub account name>/AzureSphereDevX.Examples.git
- From the command line, change to the root directory of the repo you pulled
- Create a new branch for your example:
git branch <yourBranchName>
- Switch to your new branch:
git checkout <yourBranchName>
- Add a new folder for your example, try to follow the existing example naming convention
- I usually copy an existing example as a starting point
- Your new folder should NOT contain the AzureSphereDevX or HardwareDefinition folders, we'll add these as git submodules next
- Add the submodules
- Add the AzureSphereDevX submodule with the command:
git submodule add https://github.com/Azure-Sphere-DevX/AzureSphereDevX.git .\<yourNewDirectory>\AzureSphereDevX
- Add the HardwareDefinitions submodule with the command:
git submodule add https://github.com/Azure-Sphere-DevX/AzureSphereDevX.HardwareDefinitions.git .\<yourNewDirectory>\HardwareDefinitions
- Develop your application and check in your changes to your branch
- Check the build using the /tools/build-tools/build_all script
- Once you're ready to move your changes into the public repo open a Pull Request