node-cwmp
v1.0.2
Published
Node-CWMP is a lightweight Node.js library for building and managing a CPE WAN Management Protocol (CWMP) server. It allows you to interact with devices, handle CWMP messages, and manage parameters through SOAP requests. This library is useful for TR-069
Downloads
116
Readme
Node-CWMP
Node-CWMP is a lightweight Node.js library for building and managing a CPE WAN Management Protocol (CWMP) server. It allows you to interact with devices, handle CWMP messages, and manage parameters through SOAP requests. This library is useful for TR-069 management server implementation.
Features
- Device management and task scheduling
- SOAP-based communication with devices
- TR-069 protocol support
- Lightweight and fast
Installation
- Clone the repository:
git clone https://github.com/Nik-Hendricks/Node-CWMP.git
- Navigate to the directory:
cd Node-CWMP
- Install dependencies:
npm install
- Include the library in your project:
const cwmp = require('./cwmp');
- Invoke the CWMPManager class:
const cwmp = new CWMPManager();
Usage
Starting the CWMP Server
The CWMP server starts automatically when you run the library. It listens on port 7547
by default and is ready to accept requests from devices.
Example Usage
To add a task for a device:
cwmp.add_task('DEVICE_ID', 'get_param', { param_name: 'Device.DeviceInfo.SerialNumber' }, (param) => {
console.log('Received Parameter:', param);
});
Todo
- [ ] Add device authentication
- [ ] Implement all CWMP methods
- [ ] Add logging support