Giter Club home page Giter Club logo

nur_sample_java's People

Contributors

aripoy avatar mikkonid avatar turorantanen avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nur_sample_java's Issues

Setting GPIO output throws NUR API error 5

Hi,

Using GPIO input works well but we are enable to modify output state.
setGPIOStatus(1, true);
respond

error NUR API error 5: Invalid command parameter(s); Invalid function parameter(s).

Could you give us usage example with Java API.

And tap sensor events are notified as ID 0 as the GPIO input 0. Is it normal ?

Thanks

samples/02_InventoryStream throws java.net.SocketException: Socket closed

Hello,
I'm testing with a Sampo S1 (usb + ethernet) connected with the ethernet cable directly to my mac.
If I run ./run_sample.sh samples/02_InventoryStream/, when the connection with the reader is closed I see the following exception
java.net.SocketException: Socket closed at java.base/sun.nio.ch.NioSocketImpl.ensureOpenAndConnected(NioSocketImpl.java:165) at java.base/sun.nio.ch.NioSocketImpl.beginWrite(NioSocketImpl.java:366) at java.base/sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:411) at java.base/sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:440) at java.base/sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:826) at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:1035) at com.nordicid.nurapi.NurApiSocketTransport.writeData(NurApiSocketTransport.java:206) at com.nordicid.nurapi.NurPacket.write(NurPacket.java:161) at com.nordicid.nurapi.NurApi.writeThread(NurApi.java:3099) at com.nordicid.nurapi.NurApi.access$1100(NurApi.java:29) at com.nordicid.nurapi.NurApi$9.run(NurApi.java:3060) at java.base/java.lang.Thread.run(Thread.java:833)
followed by this line
Log[2]: 1680650742807 exchangeCommand() 14; write failure

Trying to debug I can avoid the exception working on the writeData() method of the NurApiSocketTransport, but I still see the line "Log[2] ....".
What is the reason of this line?

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.