Zenohex.Publisher (Zenohex v0.7.1)
View SourceInterface for publishing data via native Zenoh publishers.
This module provides functions to send data using a previously declared publisher and to undeclare it when no longer needed.
Publisher IDs are obtained from Zenohex.Session.declare_publisher/3.
Summary
Functions
Sends a kind: :delete sample using the specified publisher.
Sends a kind: :put sample with binary payload using the specified publisher.
Undeclares the publisher identified by the given ID.
Types
@type delete_opts() :: [ attachment: binary() | nil, timestamp: Zenohex.Session.zenoh_timestamp_string() ]
@type id() :: reference()
@type put_opts() :: [ attachment: binary() | nil, encoding: String.t(), timestamp: Zenohex.Session.zenoh_timestamp_string() ]
Functions
@spec delete(id(), delete_opts()) :: :ok | {:error, reason :: term()}
Sends a kind: :delete sample using the specified publisher.
Sends a kind: :put sample with binary payload using the specified publisher.
Undeclares the publisher identified by the given ID.