mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-02-22 17:04:28 +00:00
change mac address to a variable
This commit is contained in:
4
main.py
4
main.py
@@ -6,6 +6,8 @@ import time
|
||||
import sys
|
||||
import shutil
|
||||
|
||||
|
||||
AIRPODS_MAC = '28:2D:7F:C2:05:5B'
|
||||
class CustomFormatter(logging.Formatter):
|
||||
def format(self, record):
|
||||
# Format the log message with spaces around colons without altering the original message
|
||||
@@ -82,7 +84,7 @@ def main():
|
||||
handler.setFormatter(formatter)
|
||||
logging.basicConfig(level=logging.DEBUG, handlers=[handler])
|
||||
|
||||
connection = Connection('28:2D:7F:C2:05:5B')
|
||||
connection = Connection(AIRPODS_MAC)
|
||||
connection.connect()
|
||||
logging.info('Sending Handshake')
|
||||
connection.send(enums.HANDSHAKE)
|
||||
|
||||
Reference in New Issue
Block a user