diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -487,7 +487,7 @@ impl<'a> Device<'a> { | |||
| 487 | return Err(Error::new("mqtt connection failed")); | 487 | return Err(Error::new("mqtt connection failed")); |
| 488 | } | 488 | } |
| 489 | 489 | ||
| 490 | defmt::info!("sending discover messages"); | 490 | defmt::debug!("sending discover messages"); |
| 491 | let device_discovery = DeviceDiscovery { | 491 | let device_discovery = DeviceDiscovery { |
| 492 | identifiers: &[self.config.device_id], | 492 | identifiers: &[self.config.device_id], |
| 493 | name: self.config.device_name, | 493 | name: self.config.device_name, |
| @@ -554,7 +554,7 @@ impl<'a> Device<'a> { | |||
| 554 | mode: entity_config.mode, | 554 | mode: entity_config.mode, |
| 555 | device: &device_discovery, | 555 | device: &device_discovery, |
| 556 | }; | 556 | }; |
| 557 | defmt::info!("discovery for entity '{}': {}", entity_config.id, discovery); | 557 | defmt::debug!("discovery for entity '{}': {}", entity_config.id, discovery); |
| 558 | 558 | ||
| 559 | self.discovery_buffer | 559 | self.discovery_buffer |
| 560 | .resize(self.discovery_buffer.capacity(), 0) | 560 | .resize(self.discovery_buffer.capacity(), 0) |
| @@ -565,7 +565,7 @@ impl<'a> Device<'a> { | |||
| 565 | } | 565 | } |
| 566 | 566 | ||
| 567 | let discovery_topic = self.discovery_topic_buffer.as_str(); | 567 | let discovery_topic = self.discovery_topic_buffer.as_str(); |
| 568 | defmt::info!("sending discovery to topic '{}'", discovery_topic); | 568 | defmt::debug!("sending discovery to topic '{}'", discovery_topic); |
| 569 | if let Err(err) = client | 569 | if let Err(err) = client |
| 570 | .publish(discovery_topic, &self.discovery_buffer) | 570 | .publish(discovery_topic, &self.discovery_buffer) |
| 571 | .await | 571 | .await |
| @@ -578,7 +578,7 @@ impl<'a> Device<'a> { | |||
| 578 | } | 578 | } |
| 579 | 579 | ||
| 580 | let command_topic = self.command_topic_buffer.as_str(); | 580 | let command_topic = self.command_topic_buffer.as_str(); |
| 581 | defmt::info!("subscribing to command topic '{}'", command_topic); | 581 | defmt::debug!("subscribing to command topic '{}'", command_topic); |
| 582 | if let Err(err) = client.subscribe(command_topic).await { | 582 | if let Err(err) = client.subscribe(command_topic).await { |
| 583 | defmt::error!( | 583 | defmt::error!( |
| 584 | "mqtt subscribe to '{}' failed with: {:?}", | 584 | "mqtt subscribe to '{}' failed with: {:?}", |
| @@ -709,7 +709,7 @@ impl<'a> Device<'a> { | |||
| 709 | continue; | 709 | continue; |
| 710 | } | 710 | } |
| 711 | 711 | ||
| 712 | defmt::info!( | 712 | defmt::debug!( |
| 713 | "mqtt receiving {} bytes of data on topic {}", | 713 | "mqtt receiving {} bytes of data on topic {}", |
| 714 | publish.data_len, | 714 | publish.data_len, |
| 715 | publish.topic | 715 | publish.topic |
