Giter Club home page Giter Club logo

Comments (9)

mhiley avatar mhiley commented on June 28, 2024 4

@HelgiHe I did get a basic read implementation working, but I've still got some work to do to generalize things enough to submit it back as a pull request (specifically, "FTDI" is hard-coded as the driver) and haven't been able to find the time. Also I'm not sure I have the right hardware to properly test a generalized implementation.

Feel free to check out this branch and use it as a starting point for implementing read:

https://github.com/EarthlingInteractive/react-native-usbserial/commits/read-implementation

from react-native-usbserial.

mhiley avatar mhiley commented on June 28, 2024 2

I encountered this error and was able to solve it by duplicating the maven config from react-native-usbserial in my project's own configuration. Specifically, I added these lines to my android/app/build.gradle:

repositories {
  maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}

from react-native-usbserial.

mhiley avatar mhiley commented on June 28, 2024 1

The change was in my project that uses your library as a dependency, not in your library itself, so I don't believe there is anything to pull request.

On a side note, is it possible to read from a serial device with this library yet? I see that readAsync is unimplemented:

https://github.com/mapaiva/react-native-usbserial/blob/master/android/src/main/java/com/bmateam/reactnativeusbserial/UsbSerialDevice.java#L33

I'm interested in possibly taking a stab at implementing this, so am curious if you just haven't gotten to it yet, or was there some technical roadblock to implementing it? Any progress I make will be contributed back to your project of course 😃

from react-native-usbserial.

mapaiva avatar mapaiva commented on June 28, 2024

It seems a problem related with a dependency that react-native-usbserial needs.

@cdesch could your share your OS specs?

from react-native-usbserial.

cdesch avatar cdesch commented on June 28, 2024

@mapaiva Here are my specs

MacOS 10.12.3
"react-native": "^0.40.0"
"react-native-usbserial": "^1.0.0",

from react-native-usbserial.

mapaiva avatar mapaiva commented on June 28, 2024

Great @mhiley!!! If you could create a PR with the solution it would be very appreciated 🎉

from react-native-usbserial.

mapaiva avatar mapaiva commented on June 28, 2024

The change was in my project that uses your library as a dependency, not in your library itself, so I don't believe there is anything to pull request.

Hmm got it :).

On a side note, is it possible to read from a serial device with this library yet? I see that readAsync is unimplemented: (...) I'm interested in possibly taking a stab at implementing this, so am curious if you just haven't gotten to it yet, or was there some technical roadblock to implementing it?

Nope, no tech issue just a big lack of time for improving it 😄. Any contribution will be very welcome @mhiley! It'd be awesome.

In fact, I'll try to fix some minors of this project this weekend as well :D .

from react-native-usbserial.

HelgiHe avatar HelgiHe commented on June 28, 2024

@mhiley
Just wondering if you ever figured it out?

from react-native-usbserial.

HelgiHe avatar HelgiHe commented on June 28, 2024

@mhiley Great thanks for sharing. I'm actually trying to use FTDI RFID reader but we got some different hardware coming in the next few months.

from react-native-usbserial.

Related Issues (12)

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.