https://github.com/omushpapa/tplinkapi
https://github.com/omushpapa/tplinkapi
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/omushpapa/tplinkapi
- Owner: omushpapa
- License: bsd-3-clause
- Created: 2022-11-11T16:27:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-28T19:28:01.000Z (over 2 years ago)
- Last Synced: 2025-01-30T12:23:12.817Z (4 months ago)
- Language: Go
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```Go
package mainimport (
"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)
}
```