In the past, it was already possible to add a location to your IoT Central devices. And these locations were shown on a map. But these locations were fixed, part of the device template properties. So it was only present in the metadata.
But now we can pass a location in the telemetry which is produced by your device.
Let’s see how it’s done and how the location is integrated into the various IoT Central dashboards.
Recently, I got a question on how to start Dependency injection in C#. For those already familiar with DI, this is both a simple and hard question.
Dependency injection is a common technique to make source code more modular and to prevent hardcoded relations between classes. This makes it possible to configure which code to use at runtime. This is also known as ‘injection’.
Below I will show a simple example. It is based on the Unity framework (not related to the Unity 3D modeling editor or game engine). According to this blog, this is the second most popular framework. Choosing the right DI framework for you depends on many factors. I normally choose Unity because this was created by Microsoft (Stay close to the Vorlons).