refactor: 重命名 connection -> session
This commit is contained in:
@ -2,7 +2,7 @@ package onvif
|
||||
|
||||
import "github.com/IOTechSystems/onvif/device"
|
||||
|
||||
func (c *Connection) GetDeviceInfo() (*device.GetDeviceInformationResponse, error) {
|
||||
func (c *Session) GetDeviceInfo() (*device.GetDeviceInformationResponse, error) {
|
||||
resp, err := c.Device.CallMethod(device.GetDeviceInformation{})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user