def parse(): data = array.array('B', [0x43, 0x04, 0x00, 0x03, 0x41, 0x05, 0x01, 0x00]) beacon = Beacon.parse(data) print beacon
def _on_beacon(self, data): b = Beacon.parse(data) self._beacons.put(b)