18 uint8_t connection_index,
const char *address_str) {
20 size_t service_size = resp.
services.back().calculate_size() + 1;
22 if (current_size + service_size > MAX_PACKET_SIZE) {
26 ESP_LOGD(TAG,
"[%d] [%s] Service %d would exceed limit (current: %u + service: %u > %u), sending current batch",
27 connection_index, address_str, send_service, (
unsigned) current_size, (
unsigned) service_size,
28 (
unsigned) MAX_PACKET_SIZE);
33 ESP_LOGW(TAG,
"[%d] [%s] Service %d is too large (%u bytes) but sending anyway", connection_index, address_str,
34 send_service, (
unsigned) service_size);
40 current_size += service_size;