forked from auracaster/bumble_mirror
Improve Broadcast Scanning
This commit is contained in:
@@ -1624,6 +1624,9 @@ class AdvertisingData:
|
||||
[bytes([len(x[1]) + 1, x[0]]) + x[1] for x in self.ad_structures]
|
||||
)
|
||||
|
||||
def to_bytes(self) -> bytes:
|
||||
return bytes(self)
|
||||
|
||||
def to_string(self, separator=', '):
|
||||
return separator.join(
|
||||
[AdvertisingData.ad_data_to_string(x[0], x[1]) for x in self.ad_structures]
|
||||
|
||||
Reference in New Issue
Block a user