feat(onvif): 添加通知存储
This commit is contained in:
@ -43,10 +43,11 @@ func NotifyCallback(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
// TODO: handle notifications
|
||||
for _, msg := range envelope.Body.Content.(*event.Notify).NotificationMessage {
|
||||
log.Printf("Topic: %s, Message: %s", msg.Topic.TopicKinds, msg.Message.Message)
|
||||
}
|
||||
onvif.Notifications[xaddr] = append(onvif.Notifications[xaddr], notify.NotificationMessage...)
|
||||
|
||||
//for _, msg := range envelope.Body.Content.(*event.Notify).NotificationMessage {
|
||||
// log.Printf("Topic: %s, Message: %s", msg.Topic.TopicKinds, msg.Message.Message)
|
||||
//}
|
||||
|
||||
response.NewResponse().Success().Send(c)
|
||||
}
|
||||
|
Reference in New Issue
Block a user