Publish versioned JSON envelopes with topic-based subscriptions.
More...
|
| None | __init__ (self, str endpoint="tcp://127.0.0.1:5571", *, Any context=None, Any socket=None) |
| | Initialize the instance.
|
| bool | publish (self, str topic, dict[str, Any] payload) |
| | Return False when the output queue is full; never block.
|
| None | close (self) |
| | Close the component.
|
Publish versioned JSON envelopes with topic-based subscriptions.
◆ __init__()
| None sdrforge.protocols.zmq.publisher.ZmqTelemetryPublisher.__init__ |
( |
| self, |
|
|
str | endpoint = "tcp://127.0.0.1:5571", |
|
|
* | , |
|
|
Any | context = None, |
|
|
Any | socket = None ) |
Initialize the instance.
- Parameters
-
| self | The current instance. |
| endpoint | The endpoint value. |
| context | The context value. |
| socket | The socket value. |
◆ close()
| None sdrforge.protocols.zmq.publisher.ZmqTelemetryPublisher.close |
( |
| self | ) |
|
Close the component.
- Parameters
-
| self | The current instance. |
◆ publish()
| bool sdrforge.protocols.zmq.publisher.ZmqTelemetryPublisher.publish |
( |
| self, |
|
|
str | topic, |
|
|
dict[str, Any] | payload ) |
Return False when the output queue is full; never block.
- Parameters
-
| self | The current instance. |
| topic | The telemetry topic. |
| payload | The telemetry payload. |
- Returns
- The operation result.
◆ _context
| sdrforge.protocols.zmq.publisher.ZmqTelemetryPublisher._context = context if context is not None else zmq.Context.instance() |
|
protected |
◆ _socket
| sdrforge.protocols.zmq.publisher.ZmqTelemetryPublisher._socket = socket |
|
protected |
◆ _zmq
| sdrforge.protocols.zmq.publisher.ZmqTelemetryPublisher._zmq = zmq |
|
protected |
◆ dropped_messages
| int sdrforge.protocols.zmq.publisher.ZmqTelemetryPublisher.dropped_messages = 0 |
The documentation for this class was generated from the following file: