Skip to content

PublicationReceipt

Part of Diagnostics & preflight in the Python API reference.

Related guidance: getting-started/preflight, how-to/troubleshooting.

Runnable examples: preflight.py.

from picogrid_ecn_client import PublicationReceipt

Confirm the strongest safe MQTT delivery fact for one publication.

PublicationReceipt(
*,
operation_id: UUID,
kind: PublicationKind,
entity_id: UUID,
qos: Literal[0, 1],
delivery_phase: DeliveryPhase,
accepted_at: datetime,
)

Source · models/diagnostics.py

NameTypeRequiredDefaultConstraintsDescription
operation_idUUIDyesClient-generated UUID correlating the local publication operation.
kindPublicationKindyesWhether the completed publication carried an entity or location.
entity_idUUIDyesUUID of the published entity.
qosLiteral[0, 1]yesMQTT QoS used for this publication: zero or one.
delivery_phaseDeliveryPhaseyesStrongest safe delivery fact established before returning the receipt.
accepted_atdatetimeyesUTC local-send completion time for QoS 0 or PUBACK receipt time for QoS 1.

Version 0.2.0 · branch main