This commit is contained in:
Liam Chan 2024-08-26 14:43:22 +08:00
parent 82d3f99404
commit de3667f957
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ func CreateSubscription(c *gin.Context) {
return
}
result, err := conn.SubscribeEvents(callbackURL, "PT60S")
result, err := conn.EventSubscribe(callbackURL, "PT60S")
if err != nil {
response.NewResponse().Error(err).Send(c)
return

View File

@ -5,7 +5,7 @@ import (
"github.com/IOTechSystems/onvif/xsd"
)
func (c *Session) SubscribeEvents(
func (c *Session) EventSubscribe(
consumerAddress event.AttributedURIType,
terminationTime xsd.String, // PT60S
) (*event.SubscribeResponse, error) {