wotpy.protocols.client

Class that represents the abstract client interface.

Classes

BaseProtocolClient()

Base protocol client class.

class wotpy.protocols.client.BaseProtocolClient

Bases: object

Base protocol client class. This is the interface that must be implemented by all client classes.

abstractmethod invoke_action(td, name, input_value, timeout=None)

Invokes an Action on a remote Thing. Returns a Future.

abstractmethod is_supported_interaction(td, name)

Returns True if the any of the Forms for the Interaction with the given name is supported in this Protocol Binding client.

abstractmethod on_event(td, name)

Subscribes to an event on a remote Thing. Returns an Observable.

abstractmethod on_property_change(td, name)

Subscribes to property changes on a remote Thing. Returns an Observable

abstractmethod on_td_change(url)

Subscribes to Thing Description changes on a remote Thing. Returns an Observable.

abstract property protocol

Protocol of this client instance. A member of the Protocols enum.

abstractmethod read_property(td, name, timeout=None)

Reads the value of a Property on a remote Thing. Returns a Future.

set_security(security_scheme_dict, credentials)

Sets the security credentials for the given security scheme.

abstractmethod write_property(td, name, value, timeout=None)

Updates the value of a Property on a remote Thing. Returns a Future.