The transmitter writes 3 bytes to the uart without using any buffer:
Code: Untitled.c Select all
ESP_LOGI(TAG, "Write %d bytes: %d, %d, %d", uart_write_bytes(UART_PORT_NUM, rgb, 3), rgb[0], rgb[1], rgb[2]);
Code: Untitled.c Select all
case UART_DATA:
uart_get_buffered_data_len(EX_UART_NUM, &buffered_size);
ESP_LOGI(TAG, "[UART DATA]: %d, size: %d", event.size, buffered_size);
uart_read_bytes(EX_UART_NUM, dtmp, event.size, portMAX_DELAY);
blink_led(led_strip, 1, dtmp);
uart_flush_input(EX_UART_NUM);
break;
In addition I used a signal analyzer and saw only three bytes transmitted.