Skip to content

Commit

Permalink
Test caching
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbeechey committed Nov 4, 2024
1 parent 839e575 commit b73f374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boards/stm32h743zi/src/tasks/heartbeat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ use {defmt_rtt as _, panic_probe as _};
#[embassy_executor::task]
pub async fn heartbeat() {
loop {
debug!("Sending heartbeat...");
SEND_CHANNEL
.send(MqttMessage {
topic: MqttTopics::to_string(&MqttTopics::Heartbeat),
payload: String::<512>::from_str("").unwrap(),
})
.await;
debug!("Heartbeat sent");
Timer::after(Duration::from_secs(1)).await;
}
}

0 comments on commit b73f374

Please sign in to comment.