Skip to content

partector_ble_decoder_blueprint

PartectorBleDecoderBlueprint

Bases: ABC

Source code in src/naneos/partector_ble/decoder/partector_ble_decoder_blueprint.py
 7
 8
 9
10
11
12
13
14
15
16
17
class PartectorBleDecoderBlueprint(ABC):
    @classmethod
    @abstractmethod
    def decode(
        cls, data: bytes, data_structure: Optional[NaneosDeviceDataPoint] = None
    ) -> NaneosDeviceDataPoint:
        """
        Decode the advertisement data from the Partector device. If the optional data_structure is
        given, it will be filled with the decoded data and returned.
        """
        pass

decode(data, data_structure=None) abstractmethod classmethod

Decode the advertisement data from the Partector device. If the optional data_structure is given, it will be filled with the decoded data and returned.

Source code in src/naneos/partector_ble/decoder/partector_ble_decoder_blueprint.py
 8
 9
10
11
12
13
14
15
16
17
@classmethod
@abstractmethod
def decode(
    cls, data: bytes, data_structure: Optional[NaneosDeviceDataPoint] = None
) -> NaneosDeviceDataPoint:
    """
    Decode the advertisement data from the Partector device. If the optional data_structure is
    given, it will be filled with the decoded data and returned.
    """
    pass