rakusan2 / frc-nt-client Goto Github PK
View Code? Open in Web Editor NEWWPI NetworkTables Client for Node
Home Page: https://www.npmjs.com/package/wpilib-nt-client
License: MIT License
WPI NetworkTables Client for Node
Home Page: https://www.npmjs.com/package/wpilib-nt-client
License: MIT License
This would be super helpful for when we no longer want to receive updates from a listener.
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) }
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?
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
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?
Would it be possible to add a callback parameter to stop which would fire once the connection stops?
In this example, the NetworkTable will only get the first assigned value and will not be able to update afterwards. I believe this has something to do with this line
but I am not exactly sure why. Help would be appreciated.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.