Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetworkMixin response example data missing #5

Open
Benehiko opened this issue Dec 15, 2020 · 3 comments
Open

NetworkMixin response example data missing #5

Benehiko opened this issue Dec 15, 2020 · 3 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@Benehiko
Copy link
Member

Response example data for GetWifi and ScanWifi is missing.

Currently

wifiInfo, err := camera.API.GetWifi()(camera.RestHandler)

scanWifiInfo, err := camera.API.ScanWifi()(camera.RestHandler)

will return nothing due to the struct being empty.

@Benehiko Benehiko added the help wanted Extra attention is needed label Dec 15, 2020
@Benehiko
Copy link
Member Author

Found another potential value that could be an enum selection.
On the network ddns settings one can specify the type, such as no-ip. There are no example range values for this under the project's example responses.

networkDDNS := &models.NetworkDDNS{
			Domain:   "",
			Enable:   false,
			Password: "",
			Type:     "no-ip",
			Username: "",
		}

@Benehiko
Copy link
Member Author

Benehiko commented Dec 15, 2020

NetworkEmail has a couple of potential enums. Setting attachment, interval or table shouldn't be so ambiguous.

networkEmail := &models.NetworkEmail{
			Username:   "",
			Password:   "",
			Addr1:      "",
			Addr2:      "",
			Addr3:      "",
			Attachment: "picture",
			Interval:   "5 Minute",
			Nickname:   "",
			Schedule: models.Schedule{
				Enable: true,
				Table:  "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111",
			},
			SmtpPort:   465,
			SmtpServer: "smtp.gmail.com",
			SSL:        true,
		} 

@Benehiko
Copy link
Member Author

NetworkFTP also has a couple of potential enums. Setting interval, maxSize, mode, streamType and table.

networkFtp := &models.NetworkFTP{
			Username:  "",
			Password:  "",
			Anonymous: false,
			Interval:  30,
			MaxSize:   100,
			Mode:      0,
			Port:      21,
			RemoteDir: "",
			Schedule: models.Schedule{
				Enable: true,
				Table:  "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111",
			},
			Server:     "",
			StreamType: 0,
		}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants