You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to figure out how to open a serial port, but not having a lot of luck.
The only thing that looks right is periph/hosts/serial/serial_go, but (leaving aside the port naming ttyS? idea is broken), func newPortDevFs(portNumber int) (*Port, error) doesn't seem to be exported, so I'm at a loss.
Can you give me an idea on how to you instantiate a serial port?
Thanks.
George
The text was updated successfully, but these errors were encountered:
Serial support needs to be implemented. Initially periph was not importing any other packages so the initial expectation was to implement it with raw API calls. Starting with periph v3 it's now fine to reuse previous implementations so that could be a way to go to have something up and running more quickly. My preference would be to not depend on cgo but it may be fine in practice. Would you want to work on such feature?
I'm trying to figure out how to open a serial port, but not having a lot of luck.
The only thing that looks right is periph/hosts/serial/serial_go, but (leaving aside the port naming ttyS? idea is broken), func newPortDevFs(portNumber int) (*Port, error) doesn't seem to be exported, so I'm at a loss.
Can you give me an idea on how to you instantiate a serial port?
Thanks.
George
The text was updated successfully, but these errors were encountered: