omushpapa / tplinkapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tplinkapi

This library provides an (unofficial) interface for interacting with a Tp-Link Router. It only works with Ipv4 addresses.

Tested with TL-WR840N.

This is still work in progress.

Example

package main

import (
	"fmt"
	"os"
)

func main() {
    Service RouterService = RouterService{
		Username: os.Getenv("USERNAME"),
		Password: os.Getenv("PASSWORD"),
		Address:  os.Getenv("ADDRESS"),
	}

	routerInfo, err := Service.GetRouterInfo()
	if err != nil {
		exitWithError(err)
	}
	fmt.Printf("Info: %+v\n", routerInfo)
}

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 100.0%