Code: Select all
def irq(event,adv):
if adv[0] != 0 or len(adv[4]) != 22 or adv[4][4:7] != b'\x02 \xaa': return
else:
print(adv)
schedule(found,adv)
bt.gap_scan(0,10000, 10000)
{'cb:d0:c5:0c:27:bd': [25.8, 53.7, 100, -72, 25868205], 'c5:ac:70:b4:d1:20': [25.8, 52.1, 94, -61, 25866256], 'cd:d7:51:15:0f:7e': [27.6, 52.2, 100, 85, 25865825]}
25866256 is the largest time tick_ms value / 1000 / 60 / 60 = 7.185 hours, that is when it stopped discovering, there appears to be no errors or exceptions, it just seems to stop !
The logging of the known devices continues in a loop, however the values never change, and logging the IRQ_SCAN_RESULT interrupt event just stops.