Vktun.IoT.Connector
0.0.6
dotnet add package Vktun.IoT.Connector --version 0.0.6
NuGet\Install-Package Vktun.IoT.Connector -Version 0.0.6
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="Vktun.IoT.Connector" Version="0.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Vktun.IoT.Connector" Version="0.0.6" />
<PackageReference Include="Vktun.IoT.Connector" />
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 Vktun.IoT.Connector --version 0.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Vktun.IoT.Connector, 0.0.6"
#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 Vktun.IoT.Connector@0.0.6
#: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=Vktun.IoT.Connector&version=0.0.6
#tool nuget:?package=Vktun.IoT.Connector&version=0.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Vktun.IoT.Connector
物联网设备连接 SDK 的主门面包。当前稳定入口聚焦 IIoTDataCollector、DI 注册、Modbus RTU/TCP、HTTP/MQTT 和自定义协议接入;S7/IEC104 为受限可用,实验性协议和云连接器不应直接视为主包的生产承诺。
安装
dotnet add package Vktun.IoT.Connector
功能
IIoTDataCollector主门面AddVktunIoTConnector/AddVktunHttpChannel/AddVktunMqttChannel- 设备管理与数据采集
- Modbus RTU/TCP、HTTP/MQTT、自定义协议的对外接入路径
- 受限的 S7 / IEC104 运行时能力
快速开始
using Microsoft.Extensions.DependencyInjection;
using Vktun.IoT.Connector;
using Vktun.IoT.Connector.Core.Interfaces;
var services = new ServiceCollection();
services.AddVktunIoTConnector(options =>
{
options.ConfigureSdk = config =>
{
config.Global.MaxConcurrentConnections = 1000;
config.Http.MaxConnectionsPerServer = 512;
};
});
await using var provider = services.BuildServiceProvider();
var collector = provider.GetRequiredService<IIoTDataCollector>();
await collector.InitializeAsync();
await collector.StartAsync();
按通道注册
仅使用 HTTP 通道:
using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
services.AddVktunHttpChannel(options =>
{
options.ConfigureSdk = config =>
{
config.Http.RequestTimeout = 5000;
config.Http.MaxConnectionsPerServer = 512;
};
});
仅使用 MQTT 通道:
using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
services.AddVktunMqttChannel(mqtt =>
{
mqtt.Server = "127.0.0.1";
mqtt.Port = 1883;
mqtt.ClientId = "gateway-001";
});
当前能力边界
OPC UA、BACnet、CANopen在当前代码库里属于实验性能力,请以根 README 和Docs/实现状态与桩功能说明.md为准。AzureIoTHubConnector、AwsIoTConnector存在于运行时层,但不是AddVktunIoTConnector默认注册的一部分。- 如需按需接入云连接器,请显式调用
AddVktunAzureIoTHubConnector或AddVktunAwsIoTConnector。 - 生产场景请不要启用
UseInMemoryTransport,并应补充真实设备联调与证书策略验证。
延伸文档
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Microsoft.Extensions.Http (>= 10.0.0)
- Vktun.IoT.Connector.Business (>= 0.0.6)
- Vktun.IoT.Connector.Configuration (>= 0.0.6)
- Vktun.IoT.Connector.Core (>= 0.0.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.