in-progress of json export feature

This commit is contained in:
2022-08-03 12:06:23 -07:00
parent bd95244314
commit 08c76ed2c8
5 changed files with 132 additions and 16 deletions

1
adb.go
View File

@@ -42,6 +42,7 @@ type ConnOptions struct {
//
// This will return a Device struct, which can be used to call other methods.
// If the connection fails or cannot complete on time, Connect will return an error.
// TODO
func Connect(ctx context.Context, opts ConnOptions) (Device, error) {
if opts.Port == 0 {
opts.Port = 5555