feat: 测试灯效,流光溢彩
This commit is contained in:
@@ -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,
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user