# nexiot-driver-extend **Repository Path**: ljagps/nexiot-driver-extend ## Basic Information - **Project Name**: nexiot-driver-extend - **Description**: nexiot Jar的驱动扩展包 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 4 - **Created**: 2026-02-27 - **Last Updated**: 2026-02-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # NexIoT Driver Extension This project provides driver extension capabilities for the NexIoT platform, primarily implementing a driver service named `NexIoTCodec1` to handle data encoding and decoding logic. ## Features - Provides a unified driver service interface `DriverService`. - Supports defining product keys, descriptive information, and data encoding/decoding operations. - Uses the `UPRequest` class to handle upstream requests, supporting multiple message types for flexible processing of device-side data. ## Core Components - **DriverService**: Defines core methods for the driver service, including product identification, description, and encoding/decoding logic. - **UPRequest**: Encapsulates the data structure for upstream requests, supporting events, payload data, and attribute information. - **NexIoTCodec1**: Implements the `DriverService` interface with concrete encoding and decoding logic. ## Usage Instructions 1. **Implement the Driver Service Interface**: - Implement the `productKey()` method to return the unique product identifier. - Implement the `desc()` method to return descriptive information. - Implement the `preDecode()`, `encode()`, and `decode()` methods to handle data transformation logic. 2. **Construct Upstream Requests**: - Use the `UPRequest` class to construct upstream request objects, setting message types, events, and data content. 3. **Encoding and Decoding**: - Call the `encode()` method to encode data. - Call the `decode()` method to decode data. ## Contribution Guidelines Contributions and improvements are welcome. Please follow these steps: 1. Fork the repository. 2. Create a new branch. 3. Commit your changes. 4. Submit a Pull Request. ## License This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.