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" />
                    
Directory.Packages.props
<PackageReference Include="Vktun.IoT.Connector" />
                    
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 Vktun.IoT.Connector --version 0.0.6
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Vktun.IoT.Connector&version=0.0.6
                    
Install as a Cake Tool

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 UABACnetCANopen 在当前代码库里属于实验性能力,请以根 README 和 Docs/实现状态与桩功能说明.md 为准。
  • AzureIoTHubConnectorAwsIoTConnector 存在于运行时层,但不是 AddVktunIoTConnector 默认注册的一部分。
  • 如需按需接入云连接器,请显式调用 AddVktunAzureIoTHubConnectorAddVktunAwsIoTConnector
  • 生产场景请不要启用 UseInMemoryTransport,并应补充真实设备联调与证书策略验证。

延伸文档

Product 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.

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
0.0.6 92 7/14/2026
0.0.5 134 5/8/2026
0.0.4 122 4/15/2026
0.0.3 113 4/14/2026
0.0.2 119 4/11/2026
0.0.1 110 4/9/2026