Skip to content
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

Leshan with android #573

Closed
YassineElyk opened this issue Sep 27, 2018 · 7 comments
Closed

Leshan with android #573

YassineElyk opened this issue Sep 27, 2018 · 7 comments
Labels
question Any question about leshan

Comments

@YassineElyk
Copy link

Hello everyone,

I'm wondering if a Leshan client can be deployed on an android board? If so, what are the things I need to consider before doing this?

Thank you for your help.

@sbernard31
Copy link
Contributor

I never tested it, but we based our code on californium(CoAP stack) and I know that some people use it on android.

Did you test Leshan client on android ? If yes could you quickly explain what you have done ? and which problems you face ? and we could try together to make it works.

@sbernard31 sbernard31 added the question Any question about leshan label Sep 27, 2018
@ja154p
Copy link

ja154p commented Mar 6, 2019

https://github.com/ApplicationPlatformForIoT/LwM2MDemoClientAndroid

I have successfully tested the above client previously. It looks like an Ericsson demo based on the objects created. So short answer is yes I think you can get it working but no you can't just run the Leshan client demo.

@sbernard31
Copy link
Contributor

sbernard31 commented Aug 6, 2019

Here another example of Leshan used with Android : https://github.com/xgswust/leshan-android-demo (from #719)

@sbernard31
Copy link
Contributor

In #800, I activate animal-sniffer-maven-plugin for ensure we don't use class signature which are not present in android.

This will not guarantee that all Leshan API will works correctly but at least that we don't use class which is not present in Android framework.

Animal sniffer is activated on main module (core, core-cf, server-core, server-cf, client-core, client-cf) but not for *-demo and server-redis as it seems this does really makes senses.

Currently Leshan target android-api-level-19/4.4.2 (aka KitKat) which should cover a great part of android devices.

About leshan dependencies :

  • californium target android-api-level-16/4.1.2
  • minimal-json : I check quickly and it sounds Ok for android-api-level-19/4.4.2
  • slf4j-api : I didn't test it but I would be surprised if this was not compatible.

@sbernard31
Copy link
Contributor

I updated the F.A.Q by adding a question about android.

@sbernard31
Copy link
Contributor

I close this issue as there is not so much we can do now.

(Except maybe develop an android demo ? 🤔 )

@sbernard31
Copy link
Contributor

sbernard31 commented Oct 21, 2024

some interesting explanation and links about android developments : eclipse-californium/californium#1664 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Any question about leshan
Projects
None yet
Development

No branches or pull requests

3 participants