19 lines
402 B
Go
19 lines
402 B
Go
package onvif
|
|
|
|
import "github.com/IOTechSystems/onvif/device"
|
|
|
|
func (c *Connection) GetDeviceInfo() (*device.GetDeviceInformationResponse, error) {
|
|
resp, err := c.Device.CallMethod(device.GetDeviceInformation{})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
result := &device.GetDeviceInformationResponse{}
|
|
err = unmarshalResponse(resp, result)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return result, nil
|
|
}
|