MakoIoT.Device.Services.Configuration
1.0.79.50784
dotnet add package MakoIoT.Device.Services.Configuration --version 1.0.79.50784
NuGet\Install-Package MakoIoT.Device.Services.Configuration -Version 1.0.79.50784
<PackageReference Include="MakoIoT.Device.Services.Configuration" Version="1.0.79.50784" />
<PackageVersion Include="MakoIoT.Device.Services.Configuration" Version="1.0.79.50784" />
<PackageReference Include="MakoIoT.Device.Services.Configuration" />
paket add MakoIoT.Device.Services.Configuration --version 1.0.79.50784
#r "nuget: MakoIoT.Device.Services.Configuration, 1.0.79.50784"
#:package MakoIoT.Device.Services.Configuration@1.0.79.50784
#addin nuget:?package=MakoIoT.Device.Services.Configuration&version=1.0.79.50784
#tool nuget:?package=MakoIoT.Device.Services.Configuration&version=1.0.79.50784
Mako-IoT.Device.Services.Configuration
Provides easy way of reading and updating configuration settings with strongly-typed objects. Settings are stored in persistent storage via IStorageService.
Usage
Create class for your settings. You may use multiple classes, one for every component. Provide section name as static/const string.
public class MyAppConfig
{
public string ApiUrl { get; set; }
public string SslCertificate { get; set; }
public string Timezone { get; set; }
public static string SectionName => "MyAppConfig";
}
Use IConfigurationService to read and/or update settings.
public class MyAppService : IMyAppService
{
private readonly MyAppConfig _config;
public MyAppService(IConfigurationService configService)
{
_config = (MyAppService)configService.GetConfigSection(MyAppService.SectionName, typeof(MyAppService));
}
//[...]
}
Add Configuration and FileStorage components in your device builder. You can specify default settings, which will be written on startup.
public class Program
{
public static void Main()
{
DeviceBuilder.Create()
.AddConfiguration(c =>
{
c.WriteDefault(MyAppConfig.SectionName, new MyAppConfig
{
ApiUrl = "http://my-app.my-company.com/api"
});
})
.AddFileStorage()
.Build()
.Start();
Thread.Sleep(Timeout.InfiniteTimeSpan);
}
}
Note: setting overwrite = true in the WriteDefault will overwrite settings with the defaults every time (even if settings already exist).
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net is compatible. |
-
- MakoIoT.Device.Services.Interface (>= 1.0.57.48509)
- nanoFramework.CoreLibrary (>= 1.17.11)
- nanoFramework.DependencyInjection (>= 1.1.32)
- nanoFramework.Json (>= 2.2.203)
- nanoFramework.System.Collections (>= 1.5.67)
- nanoFramework.System.IO.Streams (>= 1.1.96)
- nanoFramework.System.Text (>= 1.3.42)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on MakoIoT.Device.Services.Configuration:
| Package | Downloads |
|---|---|
|
MakoIoT.Device.Services.ConfigurationManager
Configuration mode manager for MAKO-IoT |
|
|
MakoIoT.Device.Services.ConfigurationApi
REST API for configuration with MAKO-IoT |
|
|
MakoIoT.Device.Platform.LocalConfig
MAKO-IoT Platform local configuration library. On-device web server, WiFi AP |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.79.50784 | 401 | 9/28/2025 |
| 1.0.78.14004 | 203 | 9/27/2025 |
| 1.0.77.29527 | 915 | 7/15/2025 |
| 1.0.76.12398 | 643 | 7/8/2025 |
| 1.0.75.52359 | 842 | 4/23/2025 |
| 1.0.74.27284 | 702 | 4/17/2025 |
| 1.0.73.61577 | 613 | 4/3/2025 |
| 1.0.72.2302 | 377 | 4/2/2025 |
| 1.0.71.26164 | 994 | 3/20/2025 |
| 1.0.70.61196 | 563 | 3/11/2025 |
| 1.0.69.15488 | 377 | 3/10/2025 |
| 1.0.68.40789 | 681 | 3/3/2025 |
| 1.0.67.38396 | 588 | 2/27/2025 |
| 1.0.65.14622 | 813 | 2/20/2025 |
| 1.0.64.18364 | 584 | 2/18/2025 |
| 1.0.62.51969 | 627 | 11/28/2024 |
| 1.0.61.54678 | 392 | 11/26/2024 |
| 1.0.60.53758 | 279 | 11/25/2024 |
| 1.0.59.12833 | 573 | 11/19/2024 |
| 1.0.58.59368 | 566 | 10/31/2024 |