feat: 测试灯效,流光溢彩

This commit is contained in:
2022-11-23 00:36:28 +08:00
parent f7b290dcbf
commit a9394bd73c
11 changed files with 139 additions and 36 deletions

View File

@@ -2,6 +2,7 @@ use crate::picker::led_color::LedColor;
use super::mqtt::MqttConnection;
use once_cell::sync::OnceCell;
use paris::info;
pub struct Manager {
mqtt: MqttConnection,

View File

@@ -27,9 +27,9 @@ impl MqttConnection {
self.broadcast_desktop_online();
}
fn subscribe_board(&self) {
async fn subscribe_board(&self) {
self.client
.subscribe("screen-bg-light/board/#", QoS::AtMostOnce);
.subscribe("screen-bg-light/board/#", QoS::AtMostOnce).await;
}
fn broadcast_desktop_online(&mut self) {