If you did not complete Part 1 and Part 2 successfully, go back and make sure it's correct.

 

Section 3: Create an Azure IoT Central Application.

 

3.1. Go to the site and log in using your Azure Active Directory Credentials: https://apps.azureiotcentral.com/create

 

3.2. Create application:

 

3.3. Create a Device Template:

 

3.4. Add the following telemetries:

You have to add each of the following as a separate telemetry entry:

acceleration_mg[0]

acceleration_mg[1]

acceleration_mg[2]

angular_rate_dps[0]

angular_rate_dps[1]

angular_rate_dps[2]

old_acceleration_mg[0]

old_acceleration_mg[1]

old_acceleration_mg[2]

old_angular_rate_dps[0]

old_angular_rate_dps[1]

old_angular_rate_dps[2]

 

Enter them like this:

 

After entering each telemetry entry you should have the following:

 

3.5. To configure email message after detecting Vibrations on the device go to the Rules and Click New/Telemetry:

 

3.6. Name Rule and add a condition like here:

 

3.7. Save it and Open and choose Email:

 

3.8. Configure email Action and Save:

Change the email address to wherever you want the warning messages go.

 

3.9. Do the same for:

acceleration_mg[0]

acceleration_mg[1]

acceleration_mg[2]

 

You can add more than one email action like here:

 

3.10. Add your Real device and delete any existing simulated one:

 

3.11. Device id can be acquired this command (it must be a lower letter):

powershell -Command ((azsphere device show-attached)[0] -split ': ')[1].ToLower()

 

 

 

Onward to Part 4, where you will set up communication between Azure Sphere IoT device and Azure IoT Central Application.