Categorygithub.com/TibebeJS/DWR-932C-cli
modulepackage
0.2.2
Repository: https://github.com/tibebejs/dwr-932c-cli.git
Documentation: pkg.go.dev

# README

Build Status

D-Link DWR-932C (LTE Router) Unofficial CLI tool

Note: Created for personal purposes

Setup

create a .env file with the following keys set. (You can copy & paste the content of sample.env and make any necessary changes)

DWR_URL="http://192.168.0.1"
DWR_USERNAME="admin"
DWR_PASSWORD="admin"

Available commands

main command: DWR-932C-cli

NAME:
   DWR-932C CLI tool - Helps manage/control the D-Link DWR-932C LTE Router right from the command line

USAGE:
    [global options] command [command options] [arguments...]

COMMANDS:
   change-mode, m  change connection mode to.
   help, h         Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help

subcommands:

  • DWR-932C-cli change-mode - change connection mode between the available modes.

    NAME:
        change-mode - change connection mode to a desired mode.
    
    USAGE:
        change-mode [command options] [arguments...]
    
    OPTIONS:
    --to value  desired connection mode ('auto', 'LTE', '3G' or '2G'). (default: "auto")
    
  • DWR-932C-cli wifi - control wifi related settings

    NAME:
        wifi - manage WIFI related settings
    
    USAGE:
        wifi [command options] [arguments...]
    
    OPTIONS:
    --on   Turn WIFI on
    --off  Turn WIFI off
    

Built in GO!

# Functions

ChangeMode : function to change change connection mode - argument must be a value from `ConnectionModes` map.
DisableWiFi : turns WiFi on or off.

# Variables

ConnectionModes : all available connection modes.