Git Product home page Git Product logo

frc-nt-client's People

Contributors

andrewda avatar rakusan2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

frc-nt-client's Issues

wpilib-nt-client crash on robot connect

Connecting to a robot from a new project crashes with an error about 50% of the time and point's to
index.js:83 or index.js:50
let val = TypesFrom[entry.typeID](buf, off);
I am using the FRC Custom dashboard to connect.
screenshot_1

Keep Alive 0x00 Unknown Message Type

I keep getting errors when trying to connect to a robot about 50% of the time.
The error points to the known message list, and the 0x00 keep alive message not being one of them (thus throwing this error).

{ buf: <Buffer 00> }
{ con: true,
err:
Error: Unknown Message Type - 0x00
at Client.read (C:\Users\adamj\Development\FRC-6800-2018-code\FRCDashboard\node_modules\wpilib-nt-client\index.js:335:19)
at Socket.client.on.data (C:\Users\adamj\Development\FRC-6800-2018-code\FRCDashboard\node_modules\wpilib-nt-client\index.js:253:26)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at Socket.Readable.push (_stream_readable.js:136:10)
at TCP.onread (net.js:560:20) }

Issues with 2019-2020 robots

Hey, great work on the library! It seems that this has a lot of issues when used on bots that are 2019-2020
Is there any fix?

Is it possible to connect to a specific network table?

Hello,
I'm trying to incorporate the use of this library into one of my project and there is one thing that I don't understand - how do I connect to a specific NetworkTable?
In my team's code we use a number of different tables (ImageProcessing, Preferences Etc) and I need to connect to different tables depending on the situations.

Thank you for your time

Client.aliveTimer not a Timeout

When attempting the basic

ntClient.start((con, err) => {
    console.log({con, err});
    if (!con)
      throw err;
    }
  );

it throws

Uncaught TypeError: this.aliveTimer.unref is not a function
    at Client.write (/home/tyler/Programming/FRCDashboard/node_modules/wpilib-nt-client/index.js:452)
    at aliveTimer.setTimeout (/home/tyler/Programming/FRCDashboard/node_modules/wpilib-nt-client/index.js:451)

Meaning that for some reason, even though this.aliveTimer is always initialized via setTimeout it is not a Timeout.
Any ideas?

stop() and destroy() don't work

I have this little bit of code:

ipc.on('disconnect', event => {
  console.log('disconnecting...')
  client.stop()
  if(client.isConnected()) {
    client.destroy()
  }
  console.log(client.isConnected())
  event.reply('disconnected')
})

The callback is called and the log is logged, but the client still is connected or trying to connect.

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.