MakoIoT.Device.Services.Interface
1.0.47.44904
dotnet add package MakoIoT.Device.Services.Interface --version 1.0.47.44904
NuGet\Install-Package MakoIoT.Device.Services.Interface -Version 1.0.47.44904
<PackageReference Include="MakoIoT.Device.Services.Interface" Version="1.0.47.44904" />
paket add MakoIoT.Device.Services.Interface --version 1.0.47.44904
#r "nuget: MakoIoT.Device.Services.Interface, 1.0.47.44904"
// Install MakoIoT.Device.Services.Interface as a Cake Addin #addin nuget:?package=MakoIoT.Device.Services.Interface&version=1.0.47.44904 // Install MakoIoT.Device.Services.Interface as a Cake Tool #tool nuget:?package=MakoIoT.Device.Services.Interface&version=1.0.47.44904
Mako-IoT.Device.Services.Interface
Interfaces for most of MAKO IoT components. Start building your app here 😃
Device
See Mako-IoT.Device
IDevice, IDeviceBuilder, IDeviceStartBehavior
Configuration
See Mako-IoT.Device.Services.Configuration
IConfigurationService
Communication
ICommunicationService abstracts data transport logic. Currently MAKO-IoT provides MQTT implementation.
Example
//attach message received handler
_communicationService.MessageReceived += OnMessageReceived;
_communicationService.Connect(topicsToSubscribe);
//publish message
_communicationService.Publish(message, topic);
//send message to recipient
_communicationService.Send(message, recipient);
_communicationService.Disconnect();
internal void OnMessageReceived(object sender, EventArgs e)
{
var message = (string)((ObjectEventArgs)e).Data;
//[...]
}
Data Providers
See Mako-IoT.Device.Services.DataProviders
IDataProvider
Message Bus
See Mako-IoT.Device.Services.Messaging
IMessageBus, IConsumer, ConsumeContext, ConsumeStrategy
Networking
INetworkProvider provides basic network connectivity functions. Currently MAKO-IoT provides WiFi implementation.
Example
if (!_networkProvider.IsConnected)
{
_networkProvider.Connect();
if (!_networkProvider.IsConnected)
throw new NotConnectedException("Could not connect to network");
}
Scheduler
See Mako-IoT.Device.Services.Scheduler
IScheduler, ITask
Storage
IStorageService provides persistent storage functions. Currently MAKO-IoT provides NVS Flash storage implementation.
Example
bool fileExists = _storage.FileExists(fileName);
//read file
contents = _storage.ReadFile(fileName);
//write to file
_storage.WriteToFile(fileName, contents);
//delete file
_storage.DeleteFile(file);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
-
- nanoFramework.CoreLibrary (>= 1.15.5)
- nanoFramework.DependencyInjection (>= 1.1.3)
NuGet packages (24)
Showing the top 5 NuGet packages that depend on MakoIoT.Device.Services.Interface:
Package | Downloads |
---|---|
MakoIoT.Device.Services.ConfigurationManager
Configuration mode manager for MAKO-IoT |
|
MakoIoT.Device.Services.Server
Simple WebServer for .NET nanoFramework C# projects. Based on nanoFramework.WebServer by Laurent Ellerbach and contributors |
|
MakoIoT.Device.Services.WiFi.AP
WiFi Access Point library for MAKO-IoT |
|
MakoIoT.Device.Services.Mediator
MAKO-IoT simple mediator library |
|
MakoIoT.Device.Services.ConfigurationApi
REST API for configuration with MAKO-IoT |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.47.44904 | 6,841 | 8/5/2024 |
1.0.46.2905 | 7,713 | 3/22/2024 |
1.0.45.4694 | 4,919 | 1/5/2024 |
1.0.44.15980 | 996 | 12/30/2023 |
1.0.43.29288 | 4,922 | 12/1/2023 |
1.0.42.48151 | 1,563 | 11/17/2023 |
1.0.41.25178 | 790 | 11/15/2023 |
1.0.40.57355 | 1,312 | 11/10/2023 |
1.0.39.3768 | 504 | 11/9/2023 |
1.0.38.18612 | 625 | 11/7/2023 |
1.0.37.9044 | 150 | 11/7/2023 |
1.0.36.21434 | 3,133 | 10/6/2023 |
1.0.34.44535 | 3,730 | 5/24/2023 |
1.0.32.41550 | 2,436 | 5/22/2023 |
1.0.31.43304 | 340 | 5/22/2023 |
1.0.30.59281 | 1,663 | 5/22/2023 |