-
Notifications
You must be signed in to change notification settings - Fork 367
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
Question: It's possible to implement connector with non-ip protocol? #1722
Comments
@madhushreegc do you face this kind of problem too ? |
For the current flavors, there are some dependencies on the message format (e.g. UDP RFC7252, TCP RFC8323), and there are defined schemes, e.g. "coaps+tcp".
As example: I implemented a Connector, which uses AT-cmd. Though this an other UDP/DTLS implementation, I used that name. |
See also leshan - issue 1046. |
I think, this one is just done. (Or the interest is lost). |
Hi everyone!
While I'm trying to implement some functionality of eclipse-leshan/leshan#1046 I try to implement some custom connector (experimental, proof of concept for now) which would be non-ip protocol.
This connector is returning protocol "N" as non-ip. But while initializing CoapEndpoint there is call CoAP.getSchemeForProtocol() with "N" as parameter and it throws an error: "Protocol N not supported!".
If I avoid this (by placing placeholder for example "UDP") then I get another issue: connector has to implement getAddress() which has to return non-null address. But for non-ip protocols there is no InetSocketAddress address.
Is it possible to avoid these issues, or I'm not understand enough subject and I'm doing this in a wrong way.
Best Regards
The text was updated successfully, but these errors were encountered: