Go library for configuring Linux connection (requires connman & dbus)
go get github.com/tsirysndr/go-connect
Import the package into your project.
import "github.com/tsirynsdr/go-connect"
Construct a new connection manager, then use the various services on the client to access different parts of the Connman dbus API. For example:
c := connect.NewConnectionManager()
c.Wifi.Scan()
res, _ := c.Wifi.GetNetworks()
r, _ := json.Marshal(res)
fmt.Println(string(r))
👤 Tsiry Sandratraina
- Twitter: @tsiry_sndr
- Github: @tsirysndr
Give a ⭐️ if this project helped you!