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.
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)
}