ZL.IotHub.Server
2.2.18
dotnet add package ZL.IotHub.Server --version 2.2.18
NuGet\Install-Package ZL.IotHub.Server -Version 2.2.18
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="ZL.IotHub.Server" Version="2.2.18" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ZL.IotHub.Server" Version="2.2.18" />
<PackageReference Include="ZL.IotHub.Server" />
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 ZL.IotHub.Server --version 2.2.18
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ZL.IotHub.Server, 2.2.18"
#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 ZL.IotHub.Server@2.2.18
#: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=ZL.IotHub.Server&version=2.2.18
#tool nuget:?package=ZL.IotHub.Server&version=2.2.18
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ZL.IotHub.Server
把采集运行时暴露为 HTTP + SignalR 服务(ASP.NET Core)。
装什么
dotnet add package ZL.IotHub.Server
三步接入
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddIotServer(o => o.ConfigPath = "plc-config.json");
var app = builder.Build();
app.MapIotServer(); // 挂载默认端点
app.Run();
默认端点
| 端点 | 用途 |
|---|---|
GET /api/tags |
当前点位快照 |
GET /api/devices |
设备与连接状态 |
POST /api/devices/{id}/write |
写点位 |
/hubs/tags |
SignalR 增量推送 |
边界
- 面向内网/边缘部署,默认无鉴权 ⇒ 暴露公网前请自行加认证
- 只依赖
ZL.IotEngine+ZL.IotDriver,不含业务逻辑
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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.AspNetCore.Authentication.JwtBearer (>= 8.0.7)
- ZL.IotDriver (>= 2.2.18)
- ZL.IotEngine (>= 2.2.18)
- ZL.IotHub.Bridges (>= 2.2.18)
-
net8.0
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 8.0.7)
- ZL.IotDriver (>= 2.2.18)
- ZL.IotEngine (>= 2.2.18)
- ZL.IotHub.Bridges (>= 2.2.18)
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 |
|---|---|---|
| 2.2.18 | 50 | 11/7/2026 |
| 2.2.17 | 113 | 10/27/2026 |
| 2.2.16-beta.3 | 62 | 10/15/2026 |
| 2.2.16-beta.2 | 64 | 10/15/2026 |
| 2.2.15 | 101 | 10/8/2026 |
| 2.2.14 | 103 | 10/6/2026 |