Files
esphome/esphome
Claude 116f66953d [bthome] Optimize dump_config and loop behavior
**dump_config efficiency:**
- Combine 6 separate ESP_LOGCONFIG calls into 1 with newlines
- Reduces network packets from 6 to 1 (83% reduction)
- Follows ESPHome logging best practices for configuration dumps
- Important when API clients connect frequently

**loop() optimization:**
- Remove regular data change handling from loop()
- Only handle immediate advertising requests in loop()
- Regular sensor updates wait for next advertising callback
- The on_advertise_() callback already rebuilds when data_changed_

**Benefits:**
- Less overhead in loop() - only runs when immediate advertising needed
- More predictable advertising timing tied to BLE intervals
- Cleaner separation: loop handles urgent, callback handles periodic
2025-11-17 23:02:59 +00:00
..
2025-09-19 12:59:48 +00:00
2025-04-24 15:43:37 +12:00
2025-09-19 12:59:48 +00:00
2025-09-19 12:59:48 +00:00