diff --git a/gateway/check_uuid.py b/gateway/check_uuid.py deleted file mode 100644 index 4b68e74..0000000 --- a/gateway/check_uuid.py +++ /dev/null @@ -1,13 +0,0 @@ -import asyncio -from bleak import BleakScanner - -async def scan(): - print("Scan en cours (10 secondes)...") - devices = await BleakScanner.discover(timeout=10.0, return_adv=True) - for address, (device, adv) in devices.items(): - if device.name and "Djelal" in device.name: - print(f"\n{device.name} | {address}") - print(f" Service UUIDs : {adv.service_uuids}") - print(f" Local name : {adv.local_name}") - -asyncio.run(scan()) diff --git a/gateway/config.json b/gateway/config.json new file mode 100644 index 0000000..86fe46b --- /dev/null +++ b/gateway/config.json @@ -0,0 +1,15 @@ +{ + "gateway_id": "gateway_lausanne_01", + "mqtt": { + "broker": "localhost", + "port": 1883 + }, + "ble": { + "service_uuid": "ef680100-9b35-4933-9b10-52ffa9740042", + "characteristics": { + "temperature": "ef680201-9b35-4933-9b10-52ffa9740042", + "co2": "ef680204-9b35-4933-9b10-52ffa9740042", + "humidity": "ef680203-9b35-4933-9b10-52ffa9740042" + } + } +} diff --git a/gateway/mesures_nuit.png b/gateway/mesures_nuit.png deleted file mode 100644 index 8b7c85a..0000000 Binary files a/gateway/mesures_nuit.png and /dev/null differ diff --git a/gateway/scan.py b/gateway/scan.py deleted file mode 100644 index abaa7ed..0000000 --- a/gateway/scan.py +++ /dev/null @@ -1,10 +0,0 @@ -import asyncio -from bleak import BleakScanner - -async def scan(): - print("Scan BLE en cours (5 secondes)...") - devices = await BleakScanner.discover(timeout=5.0) - for d in devices: - print(f"{d.name} | {d.address}") - -asyncio.run(scan())