jacdac.verified_telemetry

Submodules

Package Contents

Classes

VerifiedTelemetryClient

A mixin service that exposes verified telemetry information for a sensor (see https://github.com/Azure/Verified-Telemetry/tree/main/PnPModel).

class jacdac.verified_telemetry.VerifiedTelemetryClient(bus: jacdac.bus.Bus, role: str)

Bases: jacdac.bus.Client

A mixin service that exposes verified telemetry information for a sensor (see https://github.com/Azure/Verified-Telemetry/tree/main/PnPModel). Implements a client for the Verified Telemetry service.

property telemetry_status Optional[jacdac.verified_telemetry.constants.VerifiedTelemetryStatus]

Reads the telemetry working status, where true is working and false is faulty.,

property telemetry_status_interval Optional[int]

(Optional) Specifies the interval between computing the fingerprint information., _: ms

property fingerprint_type Optional[jacdac.verified_telemetry.constants.VerifiedTelemetryFingerprintType]

Type of the fingerprint.,

property fingerprint_template Optional[Tuple[int, bytes]]

Template Fingerprint information of a working sensor., confidence: %

on_telemetry_status_change(handler: jacdac.bus.EventHandlerFn) jacdac.bus.UnsubscribeFn

The telemetry status of the device was updated.

on_fingerprint_template_change(handler: jacdac.bus.EventHandlerFn) jacdac.bus.UnsubscribeFn

The fingerprint template was updated

reset_fingerprint_template() None

This command will clear the template fingerprint of a sensor and collect a new template fingerprint of the attached sensor.

retrain_fingerprint_template() None

This command will append a new template fingerprint to the fingerprintTemplate. Appending more fingerprints will increase the accuracy in detecting the telemetry status.