NewLife.IoTSocket
IoT Generic Network Driver — standards-compliant TCP/UDP/HTTP driver implementing IDriver/DriverBase. Includes IoTTcpDriver, IoTUdpDriver (with IDiscoverableDriver for broadcast discovery), IoTHttpDriver. Built-in TcpTransport/UdpTransport/HttpTransport (ITransport). | IoT通用网络驱动,符合IoT标准的TCP/UDP/HTTP驱动实现,含IoTTcpDriver、IoTUdpDriver(支持广播发现)、IoTHttpDriver,内置TcpTransport/UdpTransport/HttpTransport传输层。
Install
| Product | Versions |
|---|---|
| .NET Standard | |
| Other |
README
NewLife.IoT — IoT Standard Library 🌐
🌐 English · 中文 · हिन्दी · Español · Français · العربية · বাংলা · Português · Русский · 日本語
NewLife.IoT is the IoT standard library — defining unified communication protocol contracts for the Internet of Things field. No concrete protocol implementations. Built as the single abstraction layer between IoT platforms and hardware drivers.
| Platform Side | Driver Side | Key Design |
|---|---|---|
Consume IDriver/INode/IDevice — one API for all hardware |
Implement DriverBase — plug into the ecosystem |
Async-first Task<T> + CancellationToken |
| Stardust, ZeroIoT, FIoT, custom platforms | NewLife.Modbus, Siemens, OPC-UA, BACnet | ReadResult with Quality/Timestamp, WriteResult struct |
ThingSpec thing model — properties/events/services |
ITransport — serial/TCP/UDP/HTTP unified |
Zero-allocation diagnostics, production switch |
| Source | NuGet | Docs |
|---|---|---|
| GitHub | NewLife.IoT | Requirements · Features · Architecture |
新生命项目矩阵 / Project Matrix
Targets: net10.0 / net9.0 / netstandard2.1 / netstandard2.0 / net462 / net45
| Project | Year | Description |
|---|---|---|
| Foundation | ||
| NewLife.Core | 2002 | Core library — logging, config, cache, networking, serialization, APM |
| NewLife.XCode | 2005 | Big data ORM — 10B+ rows/table, MySql/SQLite/SqlServer/Oracle/PostgreSQL/DaMeng |
| NewLife.Net | 2005 | Network library — 22.66M tps, 4M concurrent TCP connections |
| NewLife.Remoting | 2011 | RPC framework — Http/RPC, high throughput, IoT-friendly |
| NewLife.Cube | 2010 | Cube rapid dev platform — RBAC, SSO, OAuth |
| NewLife.Agent | 2008 | Service manager — Windows Service / Linux Systemd |
| NewLife.Zero | 2020 | Zero scaffold — Web/WebApi/Service project templates |
| Middleware | ||
| NewLife.Redis | 2017 | Redis client — microsecond latency, million-level throughput |
| NewLife.RocketMQ | 2018 | RocketMQ client — Apache & Alibaba Cloud |
| NewLife.MQTT | 2019 | MQTT — MqttClient / MqttServer |
| NewLife.IoT | 2022 | IoT Standard Library — unified driver interfaces & thing model spec |
| NewLife.Modbus | 2022 | Modbus TCP/RTU/ASCII |
| NewLife.Siemens | 2022 | Siemens PLC protocol |
| NewLife.Map | 2022 | Map components — Baidu/Amap/Tencent/Tianditu |
| NewLife.Audio | 2023 | Audio codec — PCM/ADPCMA/G711A/G722U/WAV/AAC |
| Products | ||
| Stardust | 2018 | Distributed service platform — node management, APM, config center |
| AntJob | 2019 | Distributed big data computing platform |
| NewLife.ERP | 2021 | Enterprise ERP |
| CrazyCoder | 2006 | Developer toolset |
| EasyIO | 2023 | Simple file storage |
| XProxy | 2005 | Reverse proxy — NAT/Http |
| HttpMeter | 2022 | HTTP stress testing |
| GitCandy | 2015 | Git source management |
| SmartOS | 2014 | Embedded OS — ARM Cortex-M |
| SmartA2 | 2019 | Embedded industrial computer — IoT edge gateway |
| FIoT IoT Platform | 2020 | IoT total solution — 100K+ points per node |
| UWB Indoor Positioning | 2020 | Centimeter-level positioning (10~20cm) |
新生命开发团队 / Team

NewLife team, founded in 2002, is an IoT solutions provider for the new era.
80+ open-source projects widely adopted across industries, 4M+ NuGet downloads.
| Website | Open Source | Community |
|---|---|---|
| newlifex.com | github.com/newlifex | QQ: 1600800 / 1600838 |

Changes from Previous Version
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.