-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to create an UART adapter? #162
Comments
Hi @MGlolenstine, glad to hear you're creating a UART adapter. I like the idea 🙌🏻. Sure it would need some kind of refactoring/redesign. I think the first question is, how to identify UARTs connections? The pub enum Addr {
Network(SocketAddr),
Device(/* UART addr here*/ )
}
pub struct Endpoint {
resource_id: ResourceId,
addr: Addr,
} Then, you can now return an |
I have to admit that I've only barely scratched the surface of the library, and the above ideas I've gotten from the documentation (which is excellent, by the way). Thank you! |
Great! and any suggestion or other idea you feel fits better is welcome! |
I've tried looking into making a custom adapter, but the
ConnectionInfo
requiresSocketAddr
which only supportsIPv4
andIPv6
, which UART doesn't have.Would it be possible to implement
connect_with
without having to specify an IP address?I've looked around for a bit and I think that one of the actions I could take, is to fork it and add COM/TTY support to
ConnectionInfo
andRemoteAddr
.EDIT: I know that the point of this library is networking, but I like the design and I thought it would make my interfacing with UART easier.
The text was updated successfully, but these errors were encountered: