This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import time | |
import datetime | |
import pytz # Ensure you have pytz installed | |
from bleak import BleakScanner, BleakClient # Ensure you have bleak installed | |
from bleak.exc import BleakError | |
# Define the MAC address and characteristic UUID | |
DEVICE_ADDRESS = "xx:xx:xx:xx:xx:xx" | |
CHARACTERISTIC_UUID = "00001f1f-0000-1000-8000-00805f9b34fb" |