You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you @jagobagascon and others for the work. Unfortunately on Windows (11) the AdvertisementPayload or manufacturer data is empty.
However, via Python I receive that data just fine, on the same machine.
importasynciofrombleakimportBleakScannerdefprint_advertisement(device, advertisement_data):
# Check if the device name starts with "BTH"ifdevice.nameanddevice.name.startswith("BTH"):
print(f"Found Device - Name: {device.name}, Address: {device.address}, RSSI: {device.rssi}")
print("Advertisement Data:", advertisement_data)
asyncdefmain():
# Start scanning with a callback to filter devices by namescanner=BleakScanner()
scanner.register_detection_callback(print_advertisement)
print("Scanning for BLE devices...")
awaitscanner.start()
# Scan for 30 secondsawaitasyncio.sleep(30000)
awaitscanner.stop()
print("Scan completed.")
# Run the main functionasyncio.run(main())
Any idea what could be fixed?
The text was updated successfully, but these errors were encountered:
I see this from args.GetAdvertisement(); *advertisement.BluetoothLEAdvertisement {IUnknown: github.com/go-ole/go-ole.IUnknown {RawVTable: *(unreadable could not resolve interface type)}}
Thank you @jagobagascon and others for the work. Unfortunately on Windows (11) the AdvertisementPayload or manufacturer data is empty.
However, via Python I receive that data just fine, on the same machine.
Go results:
Go code:
Python results:
Python code:
Any idea what could be fixed?
The text was updated successfully, but these errors were encountered: