Git Product home page Git Product logo

Comments (13)

bveina avatar bveina commented on August 20, 2024 1

is there any plan to pull the android branch into the main branch?

from xbee-java.

daescalona avatar daescalona commented on August 20, 2024

Hello,

We are working onthe Android support. It is still experimental and is not documented, but you can have a look at this branch:

https://github.com/digidotcom/XBeeJavaLibrary/tree/android_support

from xbee-java.

jetremote avatar jetremote commented on August 20, 2024

Thank you,

I used Idea (Android Studio), with Gradle http://android-hispano.blogspot.com.es/ (also Eclipse but not for Android). I'll try, I think it works well.

But my Galaxy S4 not works with XBee, I think I have to buy a smartphone or tablet that supports OTG, is it not? Do you use a device with OTG?

Regards,

from xbee-java.

jetremote avatar jetremote commented on August 20, 2024

On second thought I will not use a smartphone or tablet because the battery runs out very quickly.

from xbee-java.

t3db0t avatar t3db0t commented on August 20, 2024

What's the status of the Android Support branch? I need to implement this ASAP; but this branch is 92 commits behind master. Is it useable in any way? Really the only thing I need to do is use a vendor's proprietary serial port class/methods, can IConnectionInterface be used for this?

from xbee-java.

daescalona avatar daescalona commented on August 20, 2024

Hello,

I just merged master on the Android branch. Build is ok and all tests are passing so it is safe to use.

Kind regards.

from xbee-java.

t3db0t avatar t3db0t commented on August 20, 2024

Wow, awesome! Thank you!

from xbee-java.

t3db0t avatar t3db0t commented on August 20, 2024

Followup question—is there an example of how to use a separate serial port with the library? Thank you!

from xbee-java.

daescalona avatar daescalona commented on August 20, 2024

Hello,

What do you mean with separate serial port? If what you want is to integrate another serial library, no, there is not any example. Best way is to check how it is done with the current one in code. Also, I think there is a pull request with another serial library implementation you could check.

Kind regards.

from xbee-java.

t3db0t avatar t3db0t commented on August 20, 2024

Hi again—I'm fairly new to Android so I'm still trying to figure out the correct way to do this. I have a proprietary android tablet with a built-in serial port. They have their own proprietary serial API (i.e. GemvaryPortSdk.Start("ttyS0",115200)). I will have to somehow use that serial port with this library. Is that possible? Secondly, I assume the builds available on the Releases page would not be useable since they reflect the master branch? Thank you for your time :)

from xbee-java.

daescalona avatar daescalona commented on August 20, 2024

Hello,

In order to achieve it you will need to create a class implementing the IConnectionInterface implementing all the required methods using your Serial Port class. Then you will have o instantiate your XBee Device using your newly created Connection class.

Another option is to use the USB connection directly for which we already have support in the Android branch (it uses the Android USB Host interface). With this option you will not need to implement anything new, it works out of the box.

Hope that helps.

Kind regards.

from xbee-java.

rubenmoral avatar rubenmoral commented on August 20, 2024

Hi @bveina,

Yes, our plan is to merge and release that functionality very soon.

Best regards.

from xbee-java.

rubenmoral avatar rubenmoral commented on August 20, 2024

Hi everyone,

We've just released a new version of the library, 1.2.0, which includes full support for Android.

https://github.com/digidotcom/XBeeJavaLibrary/releases/tag/v1.2.0

Thanks!

from xbee-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.