Unregistered Event
Fires when a client has unregistered from notifications.
Syntax
public open class DefaultCoapEventListener : CoapEventListener { ... public override fun unregistered(e: CoapUnregisteredEvent) {} ... } public class CoapUnregisteredEvent { val remoteHost: String? val remotePort: Int val uri: String? val uriHost: String? val uriPort: Int val uriPath: String? val uriQuery: String? }
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).