1.0.2 • Published 8 months ago

node-cwmp v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

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

  1. Clone the repository:
    git clone https://github.com/Nik-Hendricks/Node-CWMP.git
  2. Navigate to the directory:
    cd Node-CWMP
  3. Install dependencies:
    npm install
  4. Include the library in your project:
    const cwmp = require('./cwmp');
  5. 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
1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago