Skip unsupported cameras (gwell based)
This commit is contained in:
@@ -196,6 +196,9 @@ func (c *Cloud) GetCameraList() ([]*Camera, error) {
|
||||
if dev.ProductType != "Camera" {
|
||||
continue
|
||||
}
|
||||
if dev.DeviceParams.IP == "" {
|
||||
continue // skip cameras without IP (gwell protocol)
|
||||
}
|
||||
|
||||
c.cameras = append(c.cameras, &Camera{
|
||||
MAC: dev.MAC,
|
||||
|
||||
Reference in New Issue
Block a user