Closed tomazursic closed 5 years ago
Hi, @sdaniel55
Something else jumped out on line 14:
TypeError: object with buffer protocol required
The following snippet fix the issue. What do you think, can we go this way?
mfg_data = bt.resolve_adv_data(adv.data, Bluetooth.ADV_MANUFACTURER_DATA)
if mfg_data:
# try to get the manufacturer data (Apple's iBeacon data is sent here)
print(binascii.hexlify(mfg_data))
This fix the bluetooth example, to be run without errors.