test LED has now ledc initialized

This commit is contained in:
Filipriec
2025-10-11 22:12:38 +02:00
parent e132980c82
commit 3181081b09
3 changed files with 43 additions and 3 deletions

View File

@@ -104,7 +104,6 @@ async fn main(spawner: Spawner) -> ! {
mqtt_publish("esp32/topic", b"hello from ESP32 (init)", QualityOfService::QoS1, false).await;
info!("Sent initial MQTT message");
// Subscribe to your topics (can be done anytime; command is queued)
mqtt_subscribe("esp32/topic").await;
// Get a receiver for incoming MQTT messages

View File

@@ -35,7 +35,7 @@ static TCP_TX_BUFFER: ConstStaticCell<[u8; 2048]> = ConstStaticCell::new([0; 204
static MQTT_TX_BUF: ConstStaticCell<[u8; 1024]> = ConstStaticCell::new([0; 1024]);
static MQTT_RX_BUF: ConstStaticCell<[u8; 1024]> = ConstStaticCell::new([0; 1024]);
// Tie TcpSocket lifetime to session, MQTT buffers to 'a (fixes E0521).
// Tie TcpSocket lifetime to session
type Client<'a, 'net> = MqttClient<'a, TcpSocket<'net>, 8, CountingRng>;
#[derive(Clone)]