on_unregistered Event
Fires when a client has unregistered from notifications.
Syntax
class CoAPUnregisteredEventParams(object): @property def remote_host() -> str: ... @property def remote_port() -> int: ... @property def uri() -> str: ... @property def uri_host() -> str: ... @property def uri_port() -> int: ... @property def uri_path() -> str: ... @property def uri_query() -> str: ... # In class CoAP: @property def on_unregistered() -> Callable[[CoAPUnregisteredEventParams], None]: ... @on_unregistered.setter def on_unregistered(event_hook: Callable[[CoAPUnregisteredEventParams], None]) -> None: ...
Remarks
This event fires anytime a client has unregistered itself from further notifications for the resource identified by URI. Refer to the start_observing and send_notification methods, as well as the on_notification and on_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 class is operating in server mode (i.e., when the listening property is enabled).