mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-04 00:51:49 +00:00 
			
		
		
		
	goodbye strdup
This commit is contained in:
		@@ -65,6 +65,9 @@ class MDNSComponent : public Component {
 | 
			
		||||
    return this->dynamic_txt_values_.back().c_str();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /// Storage for runtime-generated TXT values (MAC address, user lambdas)
 | 
			
		||||
  /// Pre-sized at compile time via MDNS_DYNAMIC_TXT_COUNT to avoid heap allocations.
 | 
			
		||||
  /// Static/compile-time values (version, board, etc.) are stored directly in flash and don't use this.
 | 
			
		||||
  StaticVector<std::string, MDNS_DYNAMIC_TXT_COUNT> dynamic_txt_values_;
 | 
			
		||||
 | 
			
		||||
 protected:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user