chore
This commit is contained in:
parent
82d3f99404
commit
de3667f957
@ -22,7 +22,7 @@ func CreateSubscription(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
result, err := conn.SubscribeEvents(callbackURL, "PT60S")
|
result, err := conn.EventSubscribe(callbackURL, "PT60S")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
response.NewResponse().Error(err).Send(c)
|
response.NewResponse().Error(err).Send(c)
|
||||||
return
|
return
|
||||||
|
@ -5,7 +5,7 @@ import (
|
|||||||
"github.com/IOTechSystems/onvif/xsd"
|
"github.com/IOTechSystems/onvif/xsd"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (c *Session) SubscribeEvents(
|
func (c *Session) EventSubscribe(
|
||||||
consumerAddress event.AttributedURIType,
|
consumerAddress event.AttributedURIType,
|
||||||
terminationTime xsd.String, // PT60S
|
terminationTime xsd.String, // PT60S
|
||||||
) (*event.SubscribeResponse, error) {
|
) (*event.SubscribeResponse, error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user