# Path: bluezero/observer.py
# DEVICE_INTERFACE = 'org.bluez.Device1'
# EDDYSTONE_SRV_UUID = '0000feaa-0000-1000-8000-00805f9b34fb'
# class Scanner:
#     def start_event_loop(cls):
#     def stop_scan(cls):
#     def clean_beacons(cls):
#     def process_eddystone(cls, data, rssi):
#     def process_ibeacon(cls, data, rssi, beacon_type='iBeacon'):
#     def ble_16bit_match(uuid_16, srv_data):
#     def on_device_found(cls, bz_device_obj):
#     def start_beacon_scan(cls,
#                           on_eddystone_url=None,
#                           on_eddystone_uid=None,
#                           on_ibeacon=None,
#                           on_altbeacon=None):
# def scan_eddystone(on_data=None):


import logging
from bluezero import observer


def print_eddystone_url_values(data):
    """
    Callback to print data found with scan_eddystone
    :param data:
    :return:
    """
    print(f'Eddystone URL: {data.url} \u2197 {data.tx_pwr} \u2198 {data.rssi}')


def main():

# Path: bluezero/observer.py
# DEVICE_INTERFACE = 'org.bluez.Device1'
# EDDYSTONE_SRV_UUID = '0000feaa-0000-1000-8000-00805f9b34fb'
# class Scanner:
#     def start_event_loop(cls):
#     def stop_scan(cls):
#     def clean_beacons(cls):
#     def process_eddystone(cls, data, rssi):
#     def process_ibeacon(cls, data, rssi, beacon_type='iBeacon'):
#     def ble_16bit_match(uuid_16, srv_data):
#     def on_device_found(cls, bz_device_obj):
#     def start_beacon_scan(cls,
#                           on_eddystone_url=None,
#                           on_eddystone_uid=None,
#                           on_ibeacon=None,
#                           on_altbeacon=None):
# def scan_eddystone(on_data=None):


# Path: examples/eddystone_scanner.py
import logging
from bluezero import observer



def print_eddystone_url_values(data):
    """
    Callback to print data found with scan_eddystone
    :param data:
    :return:
    """
    print(f'Eddystone URL: {data.url} \u2197 {data.tx_pwr} \u2198 {data.rssi}')


def main():

    observer.scan_eddystone(on_data=print_eddystone_url_values)