MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / subscribe

Method subscribe

tests/integration/conftest.py:203–207  ·  view source on GitHub ↗
(self, topic: str, qos: int = 0)

Source from the content-addressed store, hash-verified

201 self.messages = received
202
203 def subscribe(self, topic: str, qos: int = 0) -> None:
204 self.client.subscribe(topic, qos)
205 # Give the broker a moment to register the subscription so
206 # subsequent publishes are delivered.
207 time.sleep(0.2)
208
209 def wait_for_messages(self, count: int = 1, timeout: float = 5.0) -> bool:
210 end = time.time() + timeout

Calls

no outgoing calls

Tested by

no test coverage detected