copied code from tag-ble-beacon, turned into ble reader