wotpy.protocols.zenoh.handlers.action

Zenoh handler for Action invocations.

Classes

ActionZenohHandler(zenoh_server)

Zenoh handler for Action invocations.

class wotpy.protocols.zenoh.handlers.action.ActionZenohHandler(zenoh_server)

Bases: BaseZenohHandler

Zenoh handler for Action invocations.

KEY_INPUT = 'input'
KEY_INVOCATION_ID = 'id'
build_action_result_topic(thing, action)

Returns the Zenoh topic for Action invocation results.

async handle_message(sample)

Listens to all Property request topics and responds to read and write requests.

classmethod to_result_topic(invocation_topic)

Takes an Action invocation Zenoh topic and returns the related result topic.

property topic_wildcard_invocation

Wildcard topic to subscribe to all Action invocations.

property topics

List of topics that this Zenoh handler wants to subscribe to.