Update 'src/pubsub/pubsub/pubsub_library_v4.py'

This commit is contained in:
Christopher Herr 2023-04-20 19:58:18 +02:00
parent dc0e4a48cd
commit ae20df933b

View File

@ -116,6 +116,10 @@ class MinimalSubscriber(Node):
self.msg = msg
return
def has_msg(self):
# Check if a maessage has been received
return self.msg is not None
def return_msg(self):
return self.msg