(self, topic: str, qos: int = 0)
| 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 |
no outgoing calls
no test coverage detected