MakoIoT.Device 1.0.85.22589

dotnet add package MakoIoT.Device --version 1.0.85.22589
                    
NuGet\Install-Package MakoIoT.Device -Version 1.0.85.22589
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MakoIoT.Device" Version="1.0.85.22589" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MakoIoT.Device" Version="1.0.85.22589" />
                    
Directory.Packages.props
<PackageReference Include="MakoIoT.Device" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MakoIoT.Device --version 1.0.85.22589
                    
#r "nuget: MakoIoT.Device, 1.0.85.22589"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MakoIoT.Device@1.0.85.22589
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MakoIoT.Device&version=1.0.85.22589
                    
Install as a Cake Addin
#tool nuget:?package=MakoIoT.Device&version=1.0.85.22589
                    
Install as a Cake Tool

Mako-IoT.Device

This is the composition framework of MAKO-IoT. These components provide backbone for your solution.

Projects structure

Create two nanoFramework projects:

MyProject.Device (nanoFramework Class Library)

Implement your logic here. You will be able to unit test this project (without hardware!). Place everything your software needs to do here, abstracting hardware-specific operations with interfaces. For example, if you want to blink a LED - create IBlinker interface here with void Blink(bool isOn); method.

MyProject.Device.App (nanoFramework Application)

This is the entry point to your software. Use DeviceBuilder to link all components together (MAKO IoT and your code) in the Main() method of Program class. Also, implement your hardware-specific logic here. For example, concrete blinker class for the interface above: LedBlinker : IBlinker. Link the interface with the class in ConfigureDI section of DeviceBuilder.

public class Program
{
    public static void Main()
    {
        DeviceBuilder.Create()
            .ConfigureDI(services =>
            {
                //dependency injection registrations go here
            })
            //add other MAKO-IoT components & configuration here
            
            .Build()
            .Start();

        Thread.Sleep(Timeout.InfiniteTimeSpan);
    }
}

See Blink sample

Device events

You can attach handlers to DeviceStarting and DeviceStopped events:

var builder = DeviceBuilder.Create();

builder.DeviceStarting += device =>
{
    //do something on start
};

builder.DeviceStopped += device =>
{
    //do something on stop
};

builder.Build().Start();

Device start behavior

With IDeviceStartBehavior you can intercept device startup. For example, based on certain condition either continue normal operation go into configuration mode.

public class MyDeviceStartBehavior : IDeviceStartBehavior
{
    public bool DeviceStarting()
    {
      if (normalOperationMode)
        return true; //continue normal device startup
      
      return false; //don't continue device startup
    }
}

public class Program
{
    public static void Main()
    {
        DeviceBuilder.Create()
            .ConfigureDI(services =>
            {
                services.AddSingleton(typeof(IDeviceStartBehavior), typeof(MyDeviceStartBehavior));
            }).Build().Start();

        Thread.Sleep(Timeout.InfiniteTimeSpan);
    }
}
Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.85.22589 293 9/28/2025
1.0.84.48605 175 9/27/2025
1.0.83.12028 241 7/15/2025
1.0.82.4016 338 4/23/2025
1.0.81.25507 321 4/17/2025
1.0.80.47983 294 4/3/2025
1.0.78.26618 275 3/20/2025
1.0.77.30503 292 3/11/2025
1.0.76.43407 298 3/10/2025
1.0.75.11289 348 3/4/2025
1.0.74.45083 233 2/27/2025
1.0.73.21768 220 2/26/2025
1.0.72.61998 271 2/20/2025
1.0.71.16198 231 2/18/2025
1.0.69.37961 231 11/28/2024
1.0.67.59807 228 11/26/2024
1.0.66.8997 243 11/25/2024
1.0.65.58783 226 11/19/2024
1.0.64.19809 268 10/18/2024
1.0.63.63404 226 10/16/2024
Loading failed