Skip to content

Commit

Permalink
Set qos=1 for buffering messages
Browse files Browse the repository at this point in the history
  • Loading branch information
oysand committed May 29, 2024
1 parent e52f5dc commit c9ae4a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/isar/state_machine/state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ def publish_mission_status(self) -> None:
self.mqtt_publisher.publish(
topic=settings.TOPIC_ISAR_MISSION,
payload=payload,
qos=1,
retain=True,
)

Expand Down Expand Up @@ -548,6 +549,7 @@ def publish_task_status(self, task: Task) -> None:
self.mqtt_publisher.publish(
topic=settings.TOPIC_ISAR_TASK,
payload=payload,
qos=1,
retain=True,
)

Expand Down Expand Up @@ -582,6 +584,7 @@ def publish_step_status(self, step: Step) -> None:
self.mqtt_publisher.publish(
topic=settings.TOPIC_ISAR_STEP,
payload=payload,
qos=1,
retain=True,
)

Expand All @@ -601,6 +604,7 @@ def publish_status(self) -> None:
self.mqtt_publisher.publish(
topic=settings.TOPIC_ISAR_STATUS,
payload=payload,
qos=1,
retain=True,
)

Expand Down
1 change: 1 addition & 0 deletions src/isar/storage/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,6 @@ def _publish_inspection_result(
self.mqtt_publisher.publish(
topic=settings.TOPIC_ISAR_INSPECTION_RESULT,
payload=payload,
qos=1,
retain=True,
)

0 comments on commit c9ae4a8

Please sign in to comment.