With the given examples this error always occurs. "'ringbuf_type_t' has not been declared"
rduino/libraries/ESP32_BLE_Arduino/src/FreeRTOS.h:61:35: error: 'ringbuf_type_t' has not been declared
61 | Ringbuffer(size_t length, ringbuf_type_t type = RINGBUF_TYPE_NOSPLIT);