Advertise in run_gatt_client_and_server

This commit is contained in:
Josh Wu
2026-04-10 13:53:30 +08:00
parent cba4df4aef
commit 7188ef08de

View File

@@ -83,6 +83,7 @@ async def main() -> None:
GATT_DEVICE_INFORMATION_SERVICE, [manufacturer_name_characteristic]
)
server_device.add_service(device_info_service)
await server_device.start_advertising()
# Connect the client to the server
connection = await client_device.connect(server_device.random_address)