# Path: beacontools/utils.py
# def data_to_hexstring(data):
#     """Convert an array of binary data to the hex representation as a string."""
#     return hexlify(data_to_binstring(data)).decode('ascii')


from ..utils import data_to_hexstring
"""Packet classes for Estimote beacons."""

class EstimoteTelemetryFrameA(object):
    """Estimote telemetry subframe A."""

    def __init__(self, data, protocol_version):
        self._protocol_version = protocol_version

# Path: beacontools/utils.py
# def data_to_hexstring(data):
#     """Convert an array of binary data to the hex representation as a string."""
#     return hexlify(data_to_binstring(data)).decode('ascii')


# Path: beacontools/packet_types/estimote.py
from ..utils import data_to_hexstring

"""Packet classes for Estimote beacons."""

class EstimoteTelemetryFrameA(object):
    """Estimote telemetry subframe A."""

    def __init__(self, data, protocol_version):
        self._protocol_version = protocol_version

        self._identifier = data_to_hexstring(data['identifier'])