Unregistered Event

Fires when a client has unregistered from notifications.

Syntax

public event OnUnregisteredHandler OnUnregistered;

public delegate void OnUnregisteredHandler(object sender, CoapUnregisteredEventArgs e);

public class CoapUnregisteredEventArgs : EventArgs {
  public string RemoteHost { get; }
  public int RemotePort { get; }
  public string URI { get; }
  public string URIHost { get; }
  public int URIPort { get; }
  public string URIPath { get; }
  public string URIQuery { get; }
}
Public Event OnUnregistered As OnUnregisteredHandler

Public Delegate Sub OnUnregisteredHandler(sender As Object, e As CoapUnregisteredEventArgs)

Public Class CoapUnregisteredEventArgs Inherits EventArgs
  Public ReadOnly Property RemoteHost As String
  Public ReadOnly Property RemotePort As Integer
  Public ReadOnly Property URI As String
  Public ReadOnly Property URIHost As String
  Public ReadOnly Property URIPort As Integer
  Public ReadOnly Property URIPath As String
  Public ReadOnly Property URIQuery As String
End Class

Remarks

This event fires anytime a client has unregistered itself from further notifications for the resource identified by URI. Refer to the StartObserving and SendNotification methods, as well as the Notification and Register events, for more information about observing resources and resource change notifications.

The RemoteHost parameter reflects the client's IP address or hostname.

The RemotePort parameter reflects the client's port.

The URI parameter identifies the resource that the client has stopped observing.

The URIHost, URIPort, URIPath, and URIQuery parameters are provided for additional convenience

Note: This event is only used when the component is operating in server mode (i.e., when the Listening property is enabled).

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks IoT 2020 .NET Edition - Version 20.0 [Build 8265]