USB write action like UART write #3385
Unanswered
Chaosflo
asked this question in
Component enhancements
Replies: 2 comments
-
|
🏷️ I've automatically added the |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Unless the usb device implements a serial device class, you can't just "write" to it. Whatever component is implementing the printer handling (if it isn't usb_uart) needs to provide the write support. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Component name
usb_host
Link to component documentation on our website
https://www.esphome.io/components/usb_host/
Describe the enhancement
Hej! =)
It would be very useful if we would have a usb.write like we have uart.write.
This would makes great value for usb devices with simple communication like a ESC POS printer.
There I could simply send the commands with usb.write instead of uart.write.
I would like to specify the endpoint and the data sent.
Use cases
As said I currently work on a project where a usb ESC/POS printer is involved.
Currently there is a very basic implementation (by inheriting the current usb_host classes).
As I am nowhere good in C++ it would greatly simplify my implementation!
I think there are more usecases, tho I admit its very specific to my case.
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions