ozgbostan wrote: ↑
Wed Feb 24, 2021 10:09 am
OK, I have understood. So, what about "Serial connected to:" option of Arduino IDE? Is it another feature of ESP32 Arduino Core? As far as I understood, the released library of yours and that option are different alternatives, right?
Thats right. My library is alternative for espressif library in arduino IDE which is having only CDC class at the moment, as far as i know, and only 1 example.
The option "Serial connected to" is another thing. It is like ESP_CONSOLE_USB_CDC option in IDF menuconfig, will log all from Serial to USB instead of UART. For the same reason i described earlier (bug in tinyusb) this option is also broken in current version of arduino.
My library is more like a separate library to build CDC and other classes device and is not compatible with espressif library, so cant be used with "Serial connected to". It is because i started my library before usb hal has been created.
My library the same as espressif library can be used to control esp32. Recently i finished some device which is connected to RPi in some closed facility. To control esp32 i am using CDC and simple terminal app i wrote. Of course it can works with standard UART connection, but "my device" is a custom PCB without UART, and if it would have UART i could use screen to see logs at the same time when i control device over CDC.
Here is issue you can track