Skip to content

Commit

Permalink
add get packet
Browse files Browse the repository at this point in the history
  • Loading branch information
mbridak committed Feb 1, 2024
1 parent db97d9e commit 13efbdc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions not1mm/lib/multicast.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,8 @@ def send_as_xml(self, dict_object: dict, package_name: str):
self.server_udp.writeDatagram(
packet, QtNetwork.QHostAddress(self.multicast_group), self.multicast_port
)

def getpacket(self):
"""return a packet"""
packet = self.server_udp.receiveDatagram(1500).data().data()
return packet

0 comments on commit 13efbdc

Please sign in to comment.