-
Notifications
You must be signed in to change notification settings - Fork 409
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
Experiment Transport layer with java-coap (fork) #1373
Comments
@JaroslawLegierski I know you started to work about it, do you have any code to share. You are working on client side right ? |
Yes I have first version. I am currently able to perform registration, reg update, send data to server and deregister client. |
Ok I understand 🙂 |
@JaroslawLegierski do not hesitate to share even if code is not so good. On my side, I will also begin to work on this as I'm a bit stuck :
As you are on client, I will try to look at server side 🤔 |
OK the code won't be fully cleaned but I'd like to at least remove all failed "test blocks" from it. Unfortunately, I spend a some time on organizational tasks lately (e.g. point 1 from the list above ;-) and generally I'm a little late in this week. |
(take your time, no pressure 😉) |
Please find my first tests results here . I started by modifying the existing cf-handling classes. It seems to me that Your approach (starting from the scratch) is definitely better because I'm still using cf classes and I still have a mess in the code. |
Please find here new very initial version of leshan client using java-coap. This version has been developed based on template from you and should (finally) no longer contain the californium code. Thanks for your help and pointing me in the right direction ;-). |
@JaroslawLegierski do not hesitate to share if you find anything smelly in new transport layer abstraction. On my side, I moved forward about implementing Endpoints provider for server based on I inspired myself from your work (translator + request/response builder). Currently, I'm able to do :
What is not implemented :
There is also some TODO which I need investigate, this will probably lead to some discussion with Next step ?
|
In my last version client I implemented initial version of Read function. I took the ResponseCodeUtil class from you 😄. Some variables are still hardcoded but I will try clean it in new versions e.g. ServerIdentity (needed by ReadResponse in ObjectResource). In cf ServerIdentity was available in CoapExchange I don't know if there is something similar in java-coap api. |
👍 I will look at this next week.
Yep this is something we will need to ask especially for coap over dtls As for now we just test with coap, I create identity like this : |
I moved a bit forward. I added support of :
(Note this is still a draft, that means a lot of polish/tests are missing) |
Could you make it a draft PR? It would be easier to write comments or ask questions. |
Yep, this is done #1382. |
From my side, only small progress in 3d49df0 - mainly I found and corrected some bugs in the read function and added send. I also used Your random token generator. |
I finally finished to modify our integration tests to be able to test different transport (See #1425) These changes should allow us to run most of our integrations tests with |
I have a Leshan server which passes all integration tests using java-coap (with some limitations see #1382 (comment)) I think before to go deeper at server side, it would be better to move forward at client side. @JaroslawLegierski did you move forward on the client ? Do you plan to do it OR should I reuse your work and start to work on it ? |
Unfortunately I didnt you move forward on the client from last time 😟. Because currently most important for us is #1421 topic please feel free to reuse my java-coap work |
@JaroslawLegierski no problem. 🙂
Thx 🙏
Let's talk about #1421 in the corresponding issue. |
I move a bit forward about Client side support : #1443 |
There is now first implementation of CoAP protocol based on java-coap(fork) in
The main purpose was to test transport layer abstraction and I think this is done now, so I will close this issue. But there is probably more work to do to make it fully production ready. |
To test new transport layer (#1025), we decide to experiment it a little with : java-coap (fork). (see : #1338)
This issue aims to centralize discussion about it.
The text was updated successfully, but these errors were encountered: