Skip to content

Instantly share code, notes, and snippets.

@tostercx
Created July 9, 2015 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tostercx/965b233f09f64f01a16d to your computer and use it in GitHub Desktop.
Save tostercx/965b233f09f64f01a16d to your computer and use it in GitHub Desktop.
test.js
var net = require('net');
var client = net.connect({host: '10.181.121.21', port: 5552},
function() {
console.log('connected to server!');
client.write('TYPE=PARAMGET?Axle Weight Max Permited&');
});
client.on('data', function(data) {
console.log(data.toString());
client.end();
});
client.on('end', function() {
console.log('disconnected from server');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment